This project provides both Docker-based and manual developer deployment options.
git clone https://github.com/SujayO372/serene_ai_project.git
cd serene_ai_project- Docker 24+
- Docker Compose v2+
- A domain name (e.g.
www.serenespaceai.com) with ports 80 and 443 open
# Build and start all services (backend, frontend, nginx, certbot)
docker compose up -d --builddocker compose run --rm certbot certbot certonly \
--webroot -w /var/www/certbot \
-d www.serenespaceai.com \
--email you@example.com --agree-tos --no-eff-email
docker compose exec revproxy nginx -s reloaddocker compose psdocker compose logs -fdocker compose downYour app should now be available at:
https://www.serenespaceai.com
- Python 3.10+
- Node.js 18+ and npm
- Git
cd backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp ../.env.example .env # create your local .env and fill secrets
python Backend.py # or uvicorn Backend:app --reload --port 8000Open a second terminal:
cd frontend
npm ci
cp ../.env.example .env.local # optional, if Vite vars exist
npm run devOpen in your browser: 👉 http://localhost:5173
If you’re using the Vite proxy (recommended), API requests like /api/... will automatically route to your backend at http://localhost:8000.
Otherwise, ensure your .env.local contains:
VITE_API_BASE=http://localhost:8000-
Never commit real
.env— only.env.exampleis versioned. -
To create your own
.env:cp .env.example .env
-
Fill in real keys (e.g., API tokens, database URLs).
git pull
# For Docker:
docker compose up -d --build
# For local dev:
# restart your backend and frontend# Stop and remove all containers, networks, and caches
docker compose down -v
docker system prune -f✅ Summary
| Mode | Command to Start | URL |
|---|---|---|
| Docker Deployment | docker compose up -d --build |
https://www.serenespaceai.com |
| Local Development | npm run dev + python Backend.py |
http://localhost:5173 |