This is a Node.js implementation of the Bench Dashboard backend, using the AdonisJS framework. *Note that this uses AdonisJS v5, not v6 which was just released.
- Make sure you have
pnpm
installed. - You will also need an SQLite database. The best way to get started with that would be to clone the Bench Project
data
repo, then follow its instructions to create the DB and run migrations, then seed it.
- Clone this repo and run
pnpm install
from the root. - Create a
.env
file in the root and copy from the.env.example
, then update as needed.
To run in dev mode, just use pnpm run dev
. This will start the server on the HOST:PORT specified in the .env
.
To run tests, you can just use pnpm run test
. If you want a coverage report, run pnpm run coverage
and a report will be created in /tests/coverage/index.html