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
This backend is built with **FastAPI**, **Pydantic**, **MongoDB** (via `pymongo`), and managed using **Poetry**. It serves as the API and data layer for the project.
4
+
5
+
## 🛠️ Tech Stack
6
+
7
+
-**FastAPI**: Web framework for building APIs
8
+
-**Pydantic**: Data validation and settings management
9
+
-**MongoDB**: NoSQL database
10
+
-**pymongo**: MongoDB driver for Python
11
+
-**Uvicorn**: ASGI server for running FastAPI
12
+
-**Poetry**: Dependency and environment management
13
+
14
+
## 🚀 Getting Started
15
+
16
+
### 1. Install Dependencies
17
+
18
+
Make sure you have [Poetry](https://python-poetry.org/docs/#installation) installed.
19
+
20
+
```sh
21
+
cd backend
22
+
poetry install
23
+
```
24
+
25
+
### 2. Environment Variables
26
+
27
+
Copy the example environment file and fill in your MongoDB credentials:
28
+
29
+
```sh
30
+
cp .env.example .env
31
+
# Edit .env with your MongoDB details
32
+
```
33
+
34
+
### 3. Run the local Development Server
35
+
36
+
Use the provided script to start the server with hot-reload:
37
+
38
+
```sh
39
+
sh scripts/start_server.sh
40
+
```
41
+
42
+
### 4. Project Structure
43
+
44
+
```
45
+
app/
46
+
├── main.py # FastAPI app entrypoint
47
+
├── api/ # API routers
48
+
├── models/ # Pydantic models
49
+
├── database/ # MongoDB drivers and connection logic
0 commit comments