- Install Python, Pipenv and Postgres on your machine
- Clone the repository
$ git clone https://github.com/olawalejarvis/blog_api.git
- Change into the directory
$ cd /blog_api
- Activate the project virtual environment with
$ pipenv shell
command - Install all required dependencies with
$ pipenv install
- Export the required environment variables
$ export FLASK_ENV=development $ export DATABASE_URL=postgres://name:password@houst:port/blog_api_db $ export JWT_SECRET_KEY=hhgaghhgsdhdhdd
- Start the app with
python run.py
- Part 1: https://www.codementor.io/olawalealadeusi896/restful-api-with-python-flask-framework-and-postgres-db-part-1-kbrwbygx5
- Part 2: https://www.codementor.io/olawalealadeusi896/building-a-restful-blog-apis-using-python-and-flask-part-2-l9y8awusp
- Part 3: https://www.codementor.io/olawalealadeusi896/building-a-restful-blog-apis-using-python-and-flask-part-3-lx7rt8pfk