SendIT is a courier service that helps users deliver parcels to different destinations.
The project is implemented according to the specifications which can be found in the SendIT-Javascript.pdf file. For example, you could ask why I'm not using sequelize rather than going direct with node-postgres for database interactions, that's beacuse the project specification said so.
The project is based on specifications received from Andela at a time, during applications to be a volunteer mentor at one of their programs.
- Nodejs (>=12)
- npm | yarn
- PostgresSQL
- Clone repo
- Copy
.env.sampleto.envand edit appropriately - Run
./utils/create_db.sh sendit. A helper script to create DB (and tables) locally or you can create maually. The argument passed to the script indicates the database name, and must match the value in env file. - Run
npm ito install dependencies - Run
npm run watchto get started
To run tests, you have to create a test DB and also create all needed tables.
I've created a bash script to automate this process. It uses localhost for connection, and
assumes postgres as the default database user.
npm run create-test-db
npm testYou can find the link to the pivotal here