Hexagonal Architechture base Todo Web application.
Requirements
- Environmental Variables
URL_DB
- The selected database ie "redis" or "postgres" or "mongodb" or "mysql"
DATABASE_URL
- Incase you choose any db apart from redis
[REDIS]/[POSTGRES]/[MONGODB]/[MYSQL]_URL
- dsn for the database eg REDIS_URL
for redis
PORT
- Port to run application defaults to :8000
Example
export DB_URL=redis
export REDIS_URL=localhost:6329
Accepted databases
- postgres
POSTGRES_URL
- Required env variable
redis
REDIS_URL
- required env dsn
mysql
MYSQL_URL
- required env dsn
Running application
Functions
- Adding a todo
http :8000 content="Create a website" status="started"
- Getting a todo
- Delete a todo
http DELETE :8000/{todo_id}
- Update a todo
http PATCH :8080/{todo_id} <parts to be updated eg content="stuff">