Skip to content

ohtuprojekti-2022/vesialue-front

Repository files navigation

vesialue-front

Vesialueen inventointi-ilmoitus frontend

Production branch: main

  • Tests
  • codecov

Staging branch: staging

  • Tests
  • codecov

Heroku

There are GitHub Actions building and pushing the Docker containers to Heroku on each commit to main and staging branches

Installation

Requires Node version 16 or newer and npm.

Provide environment variables by creating an .env file at the root of the project:

REACT_APP_BACKEND_URL=<Backend URL>

Install depedencies and start the application with the following commands:

npm install
npm start

The application starts locally at port 3000.

Commands

ESLint

Static code analysis:

npm run lint

Analyse and automatically fix errors:

npm run lint:fix

Docker

Building Docker image

docker build -t vesialue-front .

Running the container locally

docker run --rm -p 80:80 vesialue-front The service will be available at port 80.

The port can be specified using the PORT environment variable (used when running on Heroku). The default is 80.

About

Vesialueen inventointi-ilmoitus frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages