Sign inSign up

shadowebtechnologies/todo-backend-cicd

By shadowebtechnologies

Updated 3 months ago

*school*

Image
0

395

shadowebtechnologies/todo-backend-cicd repository overview

Todo Backend

REST API for a Todo desktop application, built with Node.js, Express, and MySQL.

Features

  • JWT authentication
  • User account management
  • Todo CRUD operations
  • Nested folders
  • Parent/child todo relationships
  • Case-insensitive tags
  • Search, filtering, sorting, and pagination
  • Archived todos
  • Statuses: pending, in_progress, completed, blocked

Run

This image contains only the backend. A MySQL 8+ database must be provided separately.

docker run -d \
  --name todo-backend \
  -p 3000:3000 \
  -e HOST=0.0.0.0 \
  -e PORT=3000 \
  -e DB_HOST=mysql-host \
  -e DB_PORT=3306 \
  -e DB_USER=todo_app \
  -e DB_PASSWORD=change-me \
  -e DB_NAME=todo_app \
  -e JWT_SECRET=replace-with-a-long-random-secret \
  -e CORS_ORIGIN=https://your-frontend.example \
  SH4DOW4RE/todo-backend-cicd:latest

The container automatically applies database migrations before starting.

Required variables

VariableDescription
DB_HOSTMySQL hostname
DB_USERMySQL user
DB_PASSWORDMySQL password
DB_NAMEMySQL database
JWT_SECRETLong random JWT signing secret

Optional variables include HOST, PORT, DB_PORT, DB_CONNECTION_LIMIT, JWT_EXPIRES_IN, and CORS_ORIGIN.

Health check

GET /health

Tags

  • latest — newest successful build from main
  • sha-<commit> — immutable build associated with a Git commit

Source

GitHub repository

Tag summary

Content type

Image

Digest

sha256:3269ab150

Size

56.9 MB

Last updated

3 months ago

docker pull shadowebtechnologies/todo-backend-cicd