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
+70-12Lines changed: 70 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,43 +12,101 @@ The project consists of two parts, this repository contains the backend of the a
12
12
13
13
-[Python 3x](https://www.python.org/downloads/)
14
14
15
-
### 1. Create virtual environment
15
+
##Setting Up a Virtual Environment
16
16
17
-
Before installing all dependencies and starting your Flask Server, it is better to create a Python virtual environment. You can use the [venv package](https://docs.python.org/3/library/venv.html) to create a virtual environment. To create a new virtual environment, run the following command:
18
17
18
+
#### **Linux & macOS**
19
+
##### **Step 1: Create a virtual environment**
20
+
```sh
21
+
python3 -m venv venv
19
22
```
20
-
python -m venv /path/to/new/virtual/environment
21
-
```
22
23
23
-
Then activate your environment. On Windows for example you can activate with the script:
24
24
25
+
##### **Step 2: Activate the virtual environment**
26
+
```sh
27
+
source venv/bin/activate
28
+
```
29
+
30
+
##### **Step 3: Install dependencies**
31
+
```sh
32
+
pip install -r requirements.txt
25
33
```
26
-
name-of-event/Scripts/activate
34
+
35
+
##### **Step 4: Run Flask**
36
+
```sh
37
+
flask run
27
38
```
28
39
29
-
### 2. Install dependencies
40
+
---
30
41
31
-
Install all dependencies listed on the requirements.txt with:
42
+
#### **Windows**
43
+
##### **Step 1: Create a virtual environment**
44
+
```sh
45
+
python -m venv venv
46
+
```
32
47
48
+
##### **Step 2: Activate the virtual environment**
49
+
```sh
50
+
venv\Scripts\activate
33
51
```
52
+
53
+
##### **Step 3: Install dependencies**
54
+
```sh
34
55
pip install -r requirements.txt
35
56
```
36
57
37
-
### 3. Run the Flask API
58
+
##### **Step 4: Run Flask**
59
+
```sh
60
+
flask run
61
+
```
62
+
63
+
---
64
+
65
+
### **2. Using Conda (Works on Linux, macOS, and Windows)**
38
66
67
+
#### **Step 1: Create a Conda virtual environment**
68
+
```sh
69
+
conda create --name flask_env python=3.10
39
70
```
71
+
72
+
#### **Step 2: Activate the environment**
73
+
```sh
74
+
conda activate flask_env
75
+
```
76
+
77
+
#### **Step 3: Install dependencies**
78
+
```sh
79
+
pip install -r requirements.txt
80
+
```
81
+
82
+
#### **Step 4: Run Flask**
83
+
```sh
40
84
flask run
41
85
```
42
86
43
-
## Contributors ✨
44
87
45
-
The project is selected to be part of the [Google Summer of Code 2024](https://summerofcode.withgoogle.com/programs/2024/organizations/uramaki-lab) program, and [Vinícius Cavalcanti](https://github.com/hvini) is the main mentor of the project along with [Marc Gonzalez Capdevila](https://github.com/marcgc21), [Karine Pistili Rodrigues](https://github.com/KarinePistili). The active development of the project is being done by [Sitam Meur](https://github.com/sitamgithub-MSIT), selected as a GSoC'24 student for the project. Here are the project details in the [GSoC'24 website](https://summerofcode.withgoogle.com/programs/2024/projects/lEPzZg7S).
88
+
### **Additional Notes**
89
+
- If you face issues running `flask run`, try:
46
90
47
-
To see the full list of contributions, check out the ahead commits of the "develop" branch concerning the "main" branch. Full logs of the project development can be found in the [Daily Work Progress](https://docs.google.com/document/d/1RjCnGjYYgPKvFUrN8hSjPX29aayWr6eEopeCN3QZwEQ/edit?usp=sharing) file. Hoping to see your name in the list of contributors soon! 🚀
91
+
```sh
92
+
python -m flask run
93
+
```
94
+
- If Flask is not installed, install it manually:
95
+
96
+
```sh
97
+
pip install flask
98
+
```
99
+
- On **Windows**, if `venv\Scripts\activate` doesn't work, **run PowerShell as Administrator** and enable scripts:
100
+
101
+
```sh
102
+
Set-ExecutionPolicy Unrestricted -Scope Process
103
+
```
48
104
49
105
## 🧑🤝🧑 Contributing
50
106
51
107
Anyone is free to contribute to this project. Just do a pull request with your code and if it is all good we will accept it. You can also help us look for bugs if you find anything that creates an issue.
108
+
To see the full list of contributions, check out the ahead commits of the "develop" branch concerning the "main" branch. Full logs of the project development can be found in the [Daily Work Progress](https://docs.google.com/document/d/1RjCnGjYYgPKvFUrN8hSjPX29aayWr6eEopeCN3QZwEQ/edit?usp=sharing) file. Hoping to see your name in the list of contributors soon! 🚀
0 commit comments