Calculate the most suitable station for a given device position.
node >= 16.0
- Install dependencies:
npm install
- Build and preview:
npm run build && npm run start
- Navigate to http://localhost:3000/
- Install dependencies:
npm install
- Run
npm run test
- Create a new app on Heroku
- In the app's 'Settings' tab, select
Add buildpack
and choosenodejs
- If using the Heroku CLI:
- Copy the
Heroku git URL
fromApp information
under the 'Settings' tab. - In a terminal in the project directory add the Heroku URL to to git:
git remote add heroku <heroku-git-url>
- Deploy the project with the command:
git push heroku main
- Copy the
- Alternatively, connect the repository to the app under 'Deploy' tab:
- Select connect to GitHub, fill in the repository name and click search, and click connect when the repository appears.
- Once the connection is complete, click
Enabel Automatic Deploys
so a new deploy is made on each push to main on git. - The project can be manually deployed by selecting the
main
branch under "Manual deploy" and clicking deploy branch