Skip to content

City-of-Turku/servicemap-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servicemap UI

Service Map CI CodeQL

Requirements

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.

Available Scripts

In the project directory, you can run:

npm run dev

Start dev server and runs the app in the development mode.

npm run build

Builds the app for production to the dist folder.

npm run testBuild

Builds the app in development mode to the dist folder. Used mainly by Travis to run testcafe tests.

npm start

Runs the app by starting node server using build files.

npm test

Launches Jest test runner.

npm run browserTest

Launches TestCafe test runner and performs browser tests on headless chrome.

npm run browserTestCLI

Launches the application using node dist command and then launches TestCafe test runner in headless mode. Mainly used by Travis CI.

How to use

For development:

  • Make sure npm packages are installed by running npm installin 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 installin 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

Mobility platform

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).

About

The Service Map UI

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Other 0.7%