REST API Express JS server to get data from a shipment tracking database.
The database consist of four basic tables:
- courier
- store
- parcel
- store_order
- How to work with a Express JS server
- Organize routes and handlers
- Define custom handler
- How to connect to a Postgres database using node-postgres
- How to work with Jest and node-mocks-http for unit testing
- How to create a Postgres DB with running an initial script
- Back end server
- Node + Express JS
- Database
- Postgres 12.2
Simple run the docker-compose up
located on the /db
folder. This will launch a Postgres DB with initial data. You can
Execute npm start
In the project directory, you can run:
Runs the server
Launches the test runner in the interactive watch mode.\
Juan Camilo Marin