Skip to content

jobtrek/toudou

Repository files navigation

Toudou

Toudou is an ultra-simple, ultra-light and ultra-insecure to-do list API. This must only serve for experimentation and dev purposes.

v0.1.2

Architecture

This repo consists of a compose file with 4 containers :

  1. pgsql, a PostgreSQL database.
  2. on-startup-migration, a container that run sqitch migrations on startup.
  3. postgrest, that autogenerate a REST API automatically from the db with PostgREST.
  4. swagger-ui, serves the API documentation in a swagger UI frontend.

How to run

# Duplicate env file and adapt env var to fit your needs
cp .env.example .env

# Start the containers
docker compose up -d
  • The database is available on port 5432.
  • The API is available on port 3000.
  • The swagger is available on port 8080.

Extend

You can easily create new migrations with sqitch to extend the database. Feel free to create roles and grants to allow more advanced user authentication scenarios, see The Golden Key.

About

Backend API for to-do list exercises

Resources

Stars

Watchers

Forks

Packages

No packages published