You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-39Lines changed: 34 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,33 +8,34 @@ _This project was for an assignment at Washington University's Data Analytics Bo
8
8
9
9
## Table of contents
10
10
11
-
-[Technologies Used](#technologies-used)
12
-
-[How to run locally](#how-to-run-locally)
13
-
-[Run on Windows](#run-on-windows)
14
-
-[Run on Docker](#run-on-docker)
15
-
-[Screenshots](#screenshots)
16
-
-[API](#Climate-API)
17
-
-[Desktop](#desktop)
18
-
-[Mobile](#mobile)
19
-
-[Analysis](#Analysis)
11
+
-[Technologies Used](#technologies-used)
12
+
-[How to run locally](#how-to-run-locally)
13
+
-[Run on Windows](#run-on-windows)
14
+
-[Run on Docker](#run-on-docker)
15
+
-[Screenshots](#screenshots)
16
+
-[API](#climate-api)
17
+
-[Desktop](#desktop)
18
+
-[Mobile](#mobile)
19
+
-[Analysis](#analysis)
20
20
21
21
## Technologies used
22
22
23
-
- Python
24
-
- HTML
25
-
- CSS
26
-
- Jupyter Notebook
27
-
- Matplotlib
28
-
- Pandas
29
-
- Flask
30
-
- Black
31
-
- VS Code
32
-
- Docker
23
+
- Python
24
+
- HTML
25
+
- CSS
26
+
- Jupyter Notebook
27
+
- Matplotlib
28
+
- Pandas
29
+
- Flask
30
+
- Black
31
+
- gunicorn
32
+
- VS Code
33
+
- Docker
33
34
34
35
## How to run locally
35
36
36
-
-If you are trying to run this application directly on a Windows OS, you will need to install `Python 3.11`.
37
-
- Otherwise, you will need to install Docker so you can run the application through Docker.
37
+
- If you are trying to run this application directly on a Windows OS, you will need to install `Python 3.11`. You will also likely have to install Visual Studio and Microsoft C++ Build Tools.
38
+
-Alternatively, the recommended way is to install Docker so you can run the application through Docker.
38
39
39
40
### Run on Windows
40
41
@@ -44,55 +45,49 @@ Assumes you are using a modern Windows client OS such as Windows 11 or Windows 1
44
45
45
46
Open terminal at root of this project then move into application/ directory:
46
47
47
-
```
48
+
```bash
48
49
cd application/
49
50
```
50
51
51
52
Create venv folder in application folder using Python 3.11:
52
53
53
-
```
54
+
```bash
54
55
python3.11 -m venv venv
55
56
```
56
57
57
58
Activate venv:
58
59
59
-
```
60
+
```bash
60
61
source venv/Scripts/activate
61
62
```
62
63
63
64
Install python packages to venv:
64
65
65
-
```
66
+
```bash
66
67
pip install -r requirements.txt
67
68
```
68
69
69
70
Start application:
70
71
71
-
```
72
+
```bash
72
73
python application.py
73
74
```
74
75
75
76
### Run on Docker
76
77
77
-
Firstly, confirm that Docker is installed and running. Next confirm that no other application is using port `5000` as port `5000` is needed for the Flask server. If you need to run Flask on an alternative port, you can modify the last line in the `application/application.py` file and the ports in the `docker/docker-compose.yml` file.
78
+
Firstly, confirm that Docker is installed and running. Next confirm that no other application is using port `5000` as port `5000` is needed for the Flask server. If you need to run Flask on an alternative port, you can modify the last line in the `application/application.py` file and the ports in the `docker-compose.yml` file.
78
79
79
80
**It is assumed the user is at the root of this project and is using a UNIX style command line environment when referencing the CLI commands below.**
80
81
81
-
Open terminal at root of this project then move into docker/ directory:
82
-
83
-
```
84
-
cd docker/
85
-
```
86
-
87
82
Build Docker image and start Docker container:
88
83
89
-
```
84
+
```bash
90
85
docker compose up --build
91
86
```
92
87
93
-
Visit: http://localhost:5000 to use the application.
88
+
Visit: <http://localhost:5000> to use the application.
94
89
95
-
# Screenshots
90
+
##Screenshots
96
91
97
92
## Climate API
98
93
@@ -174,15 +169,15 @@ Visit: http://localhost:5000 to use the application.
0 commit comments