Skip to content

Gennon/parcel-calculator

Repository files navigation

parcel-calculator

Over-engineer a problem.

Problem

Given a list of parcels, calculate the total cost of shipping them.

  • Each parcel has a weight in kg.
  • There is a base cost of 10 NOK.
  • Each parcel has a base cost of 50 NOK.
  • Each parcel has a weight surcharge of 5 NOK per kg.

Solution

  • Frontend: React
  • Backend: Node.js
  • Database: MongoDB

How to run

Dependencies:

cd infra
docker-compose up

This can take a while the first time you run it.

Now you can access the frontend at http://localhost:3000.

The API documentation is available at http://localhost:5555/api-docs/v3.

The database is available at http://localhost:8081

  • username: dev
  • password: devPassword

About

Over-engineer a problem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors