Skip to content
Snippets Groups Projects
Commit 85b23f47 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Added Installation section

parent 3c0c30fb
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,38 @@ This is a project implementing the blog post by Mbithe Nzomo. ...@@ -17,6 +17,38 @@ This is a project implementing the blog post by Mbithe Nzomo.
$ pip install Flask $ pip install Flask
``` ```
### Installation
Install packages needed via pip
```shell
$ pip install -r requirement.txt
```
Setup environment variables
```shell
$ export FLASK_CONFIG=development
$ export FLASK_ENV=development
$ export FLASK_APP=run.py
```
Setup your own configuration
```
$ cp instance/config.py.default instance/config.py
$ vim instance/config.py
```
Initialize you database
```shell
$ flask db init
$ flask db migrate
$ flask db upgrade
```
Finally, you can run your app
```shell
$ flask run
```
### Resources: ### Resources:
- [Part one](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-one) - [Part one](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-one)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment