/blog_api_tutorial

Blog API Written in Python Flask- 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

Primary LanguagePython

Blog API

Build Status Coverage Status

Installation

  • 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

POSTS