If you notice a bug or want to fix something in the API, please fork the repo and create a PR New features are harder to add because they might rely on data we do not have, but you are welcome to draft a PR and we will see what we can do.
Note: you will need to clone the RaidHub-Services repository to connect to the database
- Clone the services repo
- In the new cloned repo, run
cp example.env .env
and make any changes - Install Docker desktop
- Run
make postgres
- Run
cp example.env .env
and make any changes - Run
bun dev
- By default the API is available at
http://localhost:8000
You can regenerate the Open API schema doc with bun docs
Static linting and typescript compliation checks can be run with bun lint
and bun types
respectively. Running integration tests locally is not yet fully supported, but you can run basic unit tests with bun:test
- TypeScript https://www.typescriptlang.org/docs/
- Express.js (Framework) https://expressjs.com/
- Bun (Runtime & Package manager) https://bun.sh/docs
- Zod (Schema Validation) https://zod.dev/
- Zod to OpenAPI https://github.com/asteasolutions/zod-to-openapi
- postgrejs https://www.npmjs.com/package/postgrejs