This project has no other purpose than having fun coding.
Classic nodejs project commands:
npm install
npm build
npm start
# or
npm install
npm dev
It will connect to a local PostGres DB (check details in ./src/services/db.ts) - TODO: make configurable
You can run one with docker-compose up
You must create a redirections table - see migrate_db.sql
curl -X POST -H "Content-Type: application/json" -d '{"slug": "curl", "url": "https://curl.se/"}' http://127.0.0.1:3000/redirections
- MVP
- CRUD + redirect API only
- nodejs + typescript
- fastify
- postgres DB
- DX: simple testing, dev mode, docker image
- Client
- switch to monorepo
- React static site generator