This commit is contained in:
2026-02-14 03:57:20 +00:00
parent 6876717edf
commit dfbc5d402f
3 changed files with 5092 additions and 0 deletions

31
backend/README.md Normal file
View File

@@ -0,0 +1,31 @@
# Todo App Backend
This is a standalone Node.js Express API for a Todo application.
## Features
- GET `/api/todos`: Fetch all todos
- POST `/api/todos`: Add a new todo
- GET `/`: Health check
## Standalone Setup
1. Clone this repository.
2. Install dependencies:
```bash
npm install
```
3. Start the server:
```bash
npm start
```
The server runs on port `3001` by default.
## Deployment
- **Port**: Set the `PORT` environment variable to change the listening port.
- **Docker**:
```bash
docker build -t todo-backend .
docker run -p 3001:3001 todo-backend
```
## Repository Independence
This repository has no dependencies on the frontend. It can be deployed anywhere (AWS, Heroku, DigitalOcean, etc.) independently.