Sign inSign up

helsinki/servicemap-ui

By helsinki

•Updated over 4 years ago

Image
0

9.8K

helsinki/servicemap-ui repository overview

⁠Servicemap UI

⁠Requirements

Using following:

  • Node LTS (v14)
  • npm (v6.4.1)

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

Tag summary

Content type

Image

Digest

Size

540.3 MB

Last updated

over 4 years ago

docker pull helsinki/servicemap-ui:production