Files
simple-node/backend/README.md
2026-02-14 03:57:20 +00:00

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

  1. Clone this repository.
  2. Install dependencies:
    npm install
    
  3. Start the server:
    npm start
    
    The server runs on port 3001 by default.

Deployment

  • Port: Set the PORT environment 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.