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

Added more detail steps in Installation section

parent f77dd6de
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,18 @@ This is a project implementing the blog post by Mbithe Nzomo.
### Installation
Download the project
```shell
$ git clone git@gitlab.rc.uab.edu:louistw/get_start_flask.git # or your own fork
$ cd get_start_flask
```
Create and activate your virtualenv
```shell
$ virtualenv venv
$ source venv/bin/activate
```
Install packages needed via pip
```shell
$ pip install -r requirement.txt
......@@ -44,6 +56,17 @@ $ flask db upgrade
```
In case you are using SQLite, refer to the third problem in [Known problem](#known-problems).
Create admin account
```python
$ flask shell
from app.models import Employee
from app import db
#Remember to replace ADMIN_EMAIL, ADMIN_USERNAME, ADMIN_PASSWORD with correct value
admin = Employee(email="ADMIN_EMAIL",username="ADMIN_USERNAME",password="ADMIN_PASSWORD",is_admin=True)
db.session.add(admin)
db.session.commit()
```
Finally, you can run your app
```shell
$ flask run
......
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