Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
get_start_flask
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ishan Patel
get_start_flask
Commits
dec9b015
Commit
dec9b015
authored
7 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Added more detail steps in Installation section
parent
f77dd6de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-0
23 additions, 0 deletions
README.md
with
23 additions
and
0 deletions
README.md
+
23
−
0
View file @
dec9b015
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment