@@ -6,8 +6,6 @@ Flask starter project for [Cookiecutter](https://github.com/audreyr/cookiecutter
66
77## Quick Start
88
9- ### Basics
10-
119Install Cookiecutter globally:
1210
1311``` sh
@@ -20,67 +18,7 @@ Generate the boilerplate:
2018$ cookiecutter https://github.com/realpython/cookiecutter-flask-skeleton.git
2119```
2220
23- Create and activate a virtual environment, and then install the requirements.
24-
25- ### Set Environment Variables
26-
27- Update * project/server/config.py* , and then run:
28-
29- ``` sh
30- $ export APP_NAME=" Flask Skeleton"
31- $ export APP_SETTINGS=" project.server.config.DevelopmentConfig"
32- $ export FLASK_DEBUG=1
33- ```
34-
35- Using [ Pipenv] ( https://docs.pipenv.org/ ) or [ python-dotenv] ( https://github.com/theskumar/python-dotenv ) ? Use the * .env* file to set environment variables:
36-
37- ``` sh
38- APP_NAME=" Flask Skeleton"
39- APP_SETTINGS=" project.server.config.DevelopmentConfig"
40- FLASK_DEBUG=1
41- ```
42-
43- ### Create DB
44-
45- ``` sh
46- $ python manage.py create_db
47- $ python manage.py db init
48- $ python manage.py db migrate
49- $ python manage.py create_admin
50- $ python manage.py create_data
51- ```
52-
53- ### Run the Application
54-
55-
56- ``` sh
57- $ python manage.py run
58- ```
59-
60- Access the application at the address [ http://localhost:5000/ ] ( http://localhost:5000/ )
61-
62- ### Testing
63-
64- Without coverage:
65-
66- ``` sh
67- $ python manage.py test
68- ```
69-
70- With coverage:
71-
72- ``` sh
73- $ python manage.py cov
74- ```
75-
76- Run flake8 on the app:
21+ Once generated, review the setup guides, within the newly created project directory, to configure the app:
7722
78- ``` sh
79- $ python manage.py flake
80- ```
81-
82- or
83-
84- ``` sh
85- $ flake8 project
86- ```
23+ 1 . [ setup-with-docker.md] ( %7B%7Bcookiecutter.app_slug%7D%7D/setup-with-docker.md )
24+ 1 . [ setup-without-docker.md] ( %7B%7Bcookiecutter.app_slug%7D%7D/setup-without-docker.md )
0 commit comments