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
+30-30
Original file line number
Diff line number
Diff line change
@@ -4,55 +4,55 @@
4
4
## Project Overview
5
5
This repository contains a **FastAPI backend** that serves a **static frontend** and provides the foundation for deploying the application on a **Google Cloud VM** using **Gunicorn** and **NGINX** for production.
6
6
7
-
### 📁 Project Structure
7
+
### Project Structure
8
8
```
9
9
back/python/serve.py # FastAPI application
10
10
back/python/venv/ # Python virtual environment
11
11
front/ # Frontend (HTML, CSS, JS)
12
12
```
13
13
14
-
## 🏗 Features
15
-
✅ FastAPI backend
16
-
✅ Serves `index.html` and static files (`/static`, `/resources`, `/src`)
17
-
✅ Production-ready deployment with Gunicorn and NGINX
18
-
✅ Systemd service for automatic startup on boot
19
-
✅ Ready for HTTPS with Let's Encrypt (SSL encryption)
14
+
## Features
15
+
- FastAPI backend
16
+
- Serves `index.html` and static files (`/static`, `/resources`, `/src`)
17
+
- Production-ready deployment with Gunicorn and NGINX
18
+
- Systemd service for automatic startup on boot
19
+
- Ready for HTTPS with Let's Encrypt (SSL encryption)
20
20
21
-
## 🚀 How to Run Locally (Development)
22
-
### 1️⃣ Create and activate a virtual environment:
### ✅ After this, your site will be accessible via:
110
+
### After this, your site will be accessible via:
111
111
```
112
112
https://your-domain.com
113
113
```
114
114
115
-
## 🔐 Security Recommendations
116
-
✅ Use `fastapiuser` with limited permissions
117
-
✅ Protect port `8000` with GCP firewall rules
118
-
✅ Enable HTTPS with Let's Encrypt
119
-
✅ Validate API inputs with Pydantic
120
-
✅ Keep system and Python dependencies updated
115
+
## Security Recommendations
116
+
- Use `fastapiuser` with limited permissions
117
+
- Protect port `8000` with GCP firewall rules
118
+
- Enable HTTPS with Let's Encrypt
119
+
- Validate API inputs with Pydantic
120
+
- Keep system and Python dependencies updated
121
121
122
-
## 🛠 Future Improvements
122
+
## Future Improvements
123
123
- Add more API endpoints
124
124
- Add frontend framework support (React/Vue)
125
125
126
-
## 📄 Usage Rights
126
+
## Usage Rights
127
127
The code provided here is shared in the spirit of free education. Please do not use this code directly for your coursework or professional projects. Instead, let these implementations serve as inspiration to develop your own solutions.
128
128
129
129
If you have any questions, suggestions, or feedback, feel free to contact me.
0 commit comments