This application hosts the API of the Hubbl application, from the client's application, to the core, so that everything that happens within your gym is securely stored.
The application is built using the @nrlw/express
generator. It is build in TypeScript and uses a controller-service-model approach to handle the requests.
Once the repository has been cloned, install the dependencies of the project.
# with npm
npm install
If it has already been run, there's no need to run it again
The repository already includes the nx
package, which is the library that manages the monorepo. If the nx
package is installed globally, to start the server app, in a dev
environment, run:
# using the serve alias
nx serve api
# which equals to
nx run api:serve
If the package is not installed globally, run:
# npm start is an alias to nx serve - see package.json
npm start api
The application has two test types: unit and end-to-end (e2e). The unit tests are required in any class or function that is used. In order to run the tests:
# unit tests
nx test api
# e2e tests
nx run api:test-e2e
The project flag inside CodeCov is api
.