/API

Primary LanguageTypeScript

Docs

https://api-docs.raidhub.io

Contributing

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.

Running the API locally

Note: you will need to clone the RaidHub-Services repository to connect to the database

Local database

  1. Clone the services repo
  2. In the new cloned repo, run cp example.env .env and make any changes
  3. Install Docker desktop
  4. Run make postgres

Turning the API On

  1. Run cp example.env .env and make any changes
  2. Run bun dev
  3. By default the API is available at http://localhost:8000

Open API

You can regenerate the Open API schema doc with bun docs

Testing

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

Resources and Tools