Over-engineer a 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.
- Frontend: React
- Backend: Node.js
- Database: MongoDB
Dependencies:
cd infra
docker-compose upThis 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