Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Latest commit

 

History

History

client

Hubbl logo

Hubbl Client

This folder hosts the source code of the Hubbl Client application.

Coverage Status GitHub

Project

The application is built using the @nrlw/next generator. It is build in TypeScript and NextJS.

Development

Installation

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

/etc/hosts

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

Execution

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

Testing

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.

Coverage

The project flag inside CodeCov is client.