The Mobility Profile UI
Using following:
- Node LTS (v18)
In the project directory, you can run:
Runs the app by starting node server using build files.
Builds the app for production to the dist
folder.
For development:
- Make sure npm packages are installed by running
npm install
in project root. - Make sure you have environment variables set.
.env.example
should have all required values so you can copy it to.env
file. - Then you can start development server using
npm run dev
. Which watches files and updates on code changes. - Code can be linted by running
npm run lint
which will check code for linting errors. - Code can be formatted by running
npm run format
which will format the code using Prettier settings. - You can run unit tests by running
npm test
.
For production
- Command
npm run build
builds the project into/dist
-folder.
For Docker
- Command
docker build -t mobility-profile-ui .
builds the image. - Command
docker run --name mobility-profile-ui -p 80:80 -d mobility-profile-ui
starts the container.