I develop a RESTful Web Directory using Flask. (my effotrs to know REST API)
- Clone the repo by
$ git clone https://github.com/mhmp98/Flask-Blog.git
- Go to cloned directory and create a virtual environment
$ python3 -m virtualenv venv
orpy -3 -m virtualenv venv
- Activate the virtual environment using
$ ./venv/bin/activate
or$ .\venv\Scripts\activate.bat
if you are using Windows! - Install the requirements using
$ pip install -r requirements.txt
- Copy
.env.example
to.env
and fill in the keys. - Run the migrations by
$ flask db upgrade
- Run the project using
$ flask run