Using following:
- Node LTS (v18)
- npm (v9)
If you are using NVM you can also use
nvm use
to get correct version.
For development:
- Eslint extended from
airbnb
configuration.
In the project directory, you can run:
Start dev server and runs the app in the development mode.
Builds the app for production to the dist
folder.
Builds the app in development mode to the dist
folder. Used mainly by Travis to run testcafe tests.
Runs the app by starting node server using build files.
Launches Jest test runner.
Launches TestCafe test runner and performs browser tests on headless chrome.
Launches the application using node dist
command and then launches TestCafe test runner in headless mode. Mainly used by Travis CI.
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
. - Then you can start development server using
npm run dev
. Which watches files and updates on code changes.
To run in production mode:
- 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
. - Build files by running
npm run build
- Then you can just run the app with
npm start
The mobility data platform of the service map is being developed as part of European Union Horizon 2020 programme funded SCALE-UP project (grant agreement no. 955332).