A skeleton/bootstrap of a Flask app with SQLAlchemy and unit tests.
- Clone the project
$ git clone https://github.com/gmolveau/flask-sqlalchemy-skeleton
$ cd flask-sqlalchemy-skeleton
- Install dependencies
$ virtualenv venv -p python3
$ source venv/bin/activate
(venv) $ pip install -r requirements
- Create the database
(venv) $ flask reset-db
- Run the unit tests
(venv) $ python3 -m pytest tests/
- Run the server
(venv) $ flask run
- Open your browser on
localhost:5000