Vesialueen inventointi-ilmoitus frontend
There are GitHub Actions building and pushing the Docker containers to Heroku on each commit to main and staging branches
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.
Static code analysis:
npm run lint
Analyse and automatically fix errors:
npm run lint:fix
docker build -t vesialue-front .
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.