forked from gitea_admin/simple-node
750 B
750 B
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
- Clone this repository.
- Install dependencies:
npm install - Start the server:
The server runs on port
npm start3001by default.
Deployment
- Port: Set the
PORTenvironment variable to change the listening port. - Docker:
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.