Skip to content

kasungihan/algorithm-calculator

Repository files navigation

Dijiktra’s Algorithm Calculator

Discovering Optimal Routes Through Nodes Using Dijkstra's Method

Design Mockup

See following UI Reference.

Coding Standards

Package Module

Project Setup

Install the Node environment

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Install the Docker(Option)

  1. Build a image for running on development environment

docker build -t kasungihan/algorithm-calculator:dev -f Dockerfile.dev .

  1. Up the container to preview the demo on browser: http://loocalhost:3000

docker run -it -p 3000:5173 -v ./:/app --name algorithm-calculator-app kasungihan/algorithm-calculator:dev

  1. Build a image for running on production environment

docker build -t kasungihan/algorithm-calculator:latest -f Dockerfile.prod .

  1. Up the container to load on browser: http://ec2-3-108-235-202.ap-south-1.compute.amazonaws.com/

docker run -it -p 80:80 --name algorithm-calculator-app kasungihan/algorithm-calculator:latest

Lint with ESLint

npm run lint

API Documentation

  • List Nodes
  • Calculate a Nodes

Follow the documentation: Swagger hub

Testing

run a test command to ensure the application content

npm run test:unit

Deployment

  1. run release, using argument major, minor or patch. To generate latest tag and changelog file

npm run release -- --release-as minor

  1. push to the main repository

git push --follow-tags origin main

  1. automatically deploy latest update to the live server, click the following link: http://ec2-3-108-235-202.ap-south-1.compute.amazonaws.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published