Skip to content

bendominguez011/community-project

Repository files navigation

Community Project

  • Database migrations uses Alembic
  • Frontend uses Bootstrap

#included modules

#setting up for an instance of Community Project

clone the repository and set up the flask virtual environment

$ mkdir community_project
$ git clone https://github.com/bendominguez011/no-name-web-app.git
$ pip install virtualenv
$ virtualenv flask

install the required extensions

$ flask/bin/pip install flask
$ flask/bin/pip install flask-login
$ flask/bin/pip install flask-wtf
$ flask/bin/pip install flask-sqlalchemy
$ flask/bin/pip install flask-whooshalchemy
$ flask/bin/pip install flask-bcrypt

install Bootstrap however you like, though it has to be under the static folder

to run the development server simply execute run.py from the virtual environment

$ flask/bin/python run.py

to set up the database you can use

$ flask/bin/python db_create.py

or, you can set it up on your own by writing a script or firing up the interpreter

#alembic migration commands

alembic documentation for specific instructions on how to run migrations

auto-generate is configured though, so no need to write your own migrations, just make sure your read over the migration script before upgrading. The command for auto-generating revisions is below.

$ alembic revision --autogenerate -m "what you changed"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published