Nest framework TypeScript starter repository.
- Node >= 12
- Docker >= 18 and Docker Compose
- Angular CLI installed globally
npm install -g @angular/cli
npm install
docker-compose up buddybudget-sql
npm run build
npm run start:prod
Both the frontend and backend is served by the node backend on port 3000.
- The frontend is accessible at http://localhost:3000
- The backend routes is exposed at http://localhost:3000/api
The best development experience is achieved, like so
-
Ensure database is running
docker-compose up buddybudget-sql
-
The backend can then be started, like so:
npm run start
To restart the backend automatically on file changes and enable debugging use this command instead:
npm run start:debug
-
Start the frontend
npm run start:frontend
The frontend and backend will now be available on port 4200 and 3000, respectively. And both will be reloaded automatically on changes.
curl -F upload=@data/bankStatement_skandia.xlsx "http://localhost:3000/api/transactions/batch/xlxs?format=skandia"
curl -F upload=@data/bankStatement_norwegian.xlsx "http://localhost:3000/api/transactions/batch/xlxs?format=norwegian"
Test coverage has not yet been implemented, coming soon.
# unit tests
npm run test
# e2e tests
npm run test:e2e
# test coverage
npm run test:cov
These are the initial commands used to create this project.
- nest new buddybudget
- cd buddybudget
- nest new ng-app client ## Select don't initialize
- ng new client
- npm i --save @nestjs/typeorm typeorm
- npm install pg --save
- ng add @angular/material