The application is built using the @nrlw/next
generator. It is build in TypeScript and NextJS.
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 application it is run in a non-existing (fake) URL, meaning that the DNS will not be able to find the client.hubbl.local
server. In order to run the app locally, add the following line in your /etc/hosts
file:
127.0.0.1 core.hubbl.local
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 client app, in a dev
environment, run:
# using the serve alias
nx serve client
# which equals to
nx run client:serve
If the nx
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 client
# e2e tests
nx test client-e2e
You can find the e2e tests in the
/apps/client-e2e
project.
The project flag inside CodeCov is client
.