Skip to content

Commit e2105f0

Browse files
authored
Merge pull request #33 from dish04/patch-1
Updated README and added instructions for conda
2 parents 8916a48 + 38cf4a7 commit e2105f0

File tree

1 file changed

+70
-12
lines changed

1 file changed

+70
-12
lines changed

README.md

Lines changed: 70 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,101 @@ The project consists of two parts, this repository contains the backend of the a
1212

1313
- [Python 3x](https://www.python.org/downloads/)
1414

15-
### 1. Create virtual environment
15+
## Setting Up a Virtual Environment
1616

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:
1817

18+
#### **Linux & macOS**
19+
##### **Step 1: Create a virtual environment**
20+
```sh
21+
python3 -m venv venv
1922
```
20-
python -m venv /path/to/new/virtual/environment
21-
```
2223

23-
Then activate your environment. On Windows for example you can activate with the script:
2424

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
2533
```
26-
name-of-event/Scripts/activate
34+
35+
##### **Step 4: Run Flask**
36+
```sh
37+
flask run
2738
```
2839

29-
### 2. Install dependencies
40+
---
3041

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+
```
3247

48+
##### **Step 2: Activate the virtual environment**
49+
```sh
50+
venv\Scripts\activate
3351
```
52+
53+
##### **Step 3: Install dependencies**
54+
```sh
3455
pip install -r requirements.txt
3556
```
3657

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)**
3866

67+
#### **Step 1: Create a Conda virtual environment**
68+
```sh
69+
conda create --name flask_env python=3.10
3970
```
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
4084
flask run
4185
```
4286

43-
## Contributors ✨
4487

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:
4690

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+
```
48104

49105
## 🧑‍🤝‍🧑 Contributing
50106

51107
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! 🚀
109+
52110

53111
## 📃 License
54112

0 commit comments

Comments
 (0)