The template repository for USThing backend services, powered by Fastify.
In the project directory, you can run:
To start the app in dev mode. Open http://localhost:3000 to view it in the browser.
For production mode
Run the test cases.
Run the linter.
Note that the format of the code will also be checked.
Run the linter and fix the issues.
Note that the format of the code will also be checked and fixed.
For Fastify-level environment variables, please refer to the fastify-cli documentation.
For the application-level environment variables, please refer to the .env.example file.
This template supports GitHub Actions for CI / CD. The available workflows are:
- Checks / eslint: Run ES Lint to check problems and the format of the code.
- Checks / commitlint: Run Commitlint to check the format of the commit messages.
- Checks / tests: Run unit tests of the project.
- Docker CI / docker: Build the Docker image and push it to the GitHub Container Registry.
- Release Please / release-please: Automatic releasing. See also release-please.
To learn Fastify, check out the Fastify documentation.