- @nestjs/common
- @nestjs/config
- @nestjs/core
- @nestjs/platform-express
- @nestjs/swagger
- @nestjs/typeorm
- axios
- class-transformer
- class-validator
- pg
- reflect-metadata
- rxjs
- typeorm
- You must have a .env file. (There is a template in mockEnvFile)
- You must have docker installed.
- You must have a wompi account. (with the sandbox private key and public key)
For running the project local follow this steps:
NOTE: If you run this locally you will have to change the template of the postgresql url to your local db
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# watch mode
$ npm run test:wathcFor running the project on a doceker follow this steps:
$ docker-compose up -d --buildNOTE For testing you will have to go to the docker compose.yml file and set the line 7 (target) to testing.
$ docker-compose up --buildFor populating the drivers and riders there are two post endpoints.
http://localhost:3000/drivers/populate
Note: You can send two optional arrays for populating the riders with the payment info. If the arrays are empty, you can later create the payment source.
http://localhost:3000/riders/populate
payload = {
"acceptanceTokens" : ["token"],
"creditCardPaymentSources": [123456]
}
The documentation for the endpoints is on swagger at http://localhost:3000/api. If you want to test the endpoints there is a postman collection in the file Wuber.postman_collection.json


