This is a repo that contain api in NestJS
If you want to run project in local, remember:
- NodeJS 12.x
- Yarn
Start with docker 👌
docker-compose up
Start dev server
yarn run start:dev
Install packages with:
yarn install
To run unit and integration test:
yarn test
To run e2e test:
yarn test:e2e
POST - CREATE ACCOUNT - http://0.0.0.0:5000/prod/accounts
Request example:
{
"operation": "BUY",
"issuer_name": "NFLA",
"total_shares": 1,
"share_price": 5,
}
POST - SEND ORDER INTO ACCOUNT - http://0.0.0.0:5000/prod/accounts/:id/orders
Request example:
{
"operation": "BUY",
"issuer_name": "NFLA",
"total_shares": 1,
"share_price": 1
}
- I have used docker compose for container api withdatabase
- I have user Serverless with Express
- I have used Dynamodb as DB
- Jest and ts-mockito to unit and integration testing
- Pending implemente swagger or postman collection
- Pending add husky to pass test and linter when you push to remote branch
- Penging split serverless.yml in resources file
- I did the important test (35). Pending do the restants