File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -5,33 +5,36 @@ This is a minimal sample Flask and React starter code that demonstrates how both
5
5
The code is based on https://github.com/dternyak/React-Redux-Flask .
6
6
7
7
## Tutorial
8
- ## Running The Code Locally
8
+
9
+ ## Setting Up The Project
9
10
10
11
1 . Clone the reponsitory
11
12
``` bash
12
13
git clone [TODO INSERT URL]
13
14
```
14
15
2 . Import the project folder into your favorite editor (thats Visual Studio Code for us!)
15
- 3 . Link your PostgreSQL server by adding the environment variable ``` DATABASE_URL ``` to your system
16
- * For Linux based systems: ``` export DATABASE_URL=[YOUR URL HERE] ```
17
- * For Windows based systems: ``` SET DATABASE_URL=[YOUR URL HERE] ```
18
- 4 . Build the react.js front-end.
16
+
17
+ ## Importing into VS Code
18
+
19
+ 3 . Build the react.js front-end.
19
20
``` bash
20
21
npm run build
21
22
```
22
- 5 . Create the SQL database
23
+ 4 . Create the PostgreSQL database
23
24
``` bash
24
25
python manage.py create_db
25
26
```
26
- 6 . Start the Flask back-end server
27
+ 5 . Start the Flask back-end server
27
28
``` bash
28
29
python manage.py runserver
29
30
```
30
- 7 . Check ``` localhost:5000 ``` in your browser to view the web application.
31
+ 6 . Check ``` localhost:5000 ``` in your browser to view the web application.
32
+
33
+ ## Deploying The Code To Azure
31
34
32
- ## Deploying The Code
35
+ 1 . Go to the extensions tab on VS Code
33
36
34
- 1 . [ TODO ] setting global environment variables in your system
37
+ 2 . Install the recommended extensions that show up
35
38
36
39
37
40
# Contributing
You can’t perform that action at this time.
0 commit comments