This is a simple web application that allows users to track their expenses and incomes. The application is built Angular for the frontend and Nest.js for the backend.
NOTE: This code is very much a WIP and is incomplete at the moment.
- Install the latest LTS of Node.js from Node.js
- This should also install npm, the Node.js package manager
- Clone this repository to your local machine
- Install the Angular CLI globally by running
npm install -g @angular/cli - Install the Nest.js CLI globally by running
npm install -g @nestjs/cli
-
Open a terminal and navigate to the root of the cloned repository
cd /path/to/budget-webapp -
Install the dependencies for the frontend
cd webnpm install -
Install the dependencies for the backend
cd apinpm installnpm install -
Create a
.envfile in the root of the project. You can copy theexample.envfile and rename it to.envcd apicp example.env .env
-
Open a terminal and navigate to the root of the cloned repository
cd /path/to/budget-webapp -
Start the backend server
cd apinpm run start:dev -
Start the frontend server
cd webnpm start
-
To read the OpenAPI documentation, first start the API in development mode
cd apinpm run start:dev -
Then, open a browser and navigate to
http://localhost:PORT/docswherePORTis the port number specified in the.envfile
-
Open a terminal and navigate to the root of the cloned repository
cd /path/to/budget-webapp -
Run the tests for the backend
cd apinpm run test -
Note: You can also run specific types of tests by running
npm run test:unit,npm run test:int, ornpm run test:e2e -
Run the tests for the frontend
cd webnpm run test
This project uses ESLint to lint the code. To lint the code, you must do the following:
-
Open a terminal and navigate to the root of the cloned repository
cd /path/to/budget-webapp -
Lint the code for the backend
cd apinpm run lint -
Lint the code for the frontend
cd webnpm run lint
This project uses Prettier to format the code to a consistent style. To format the code, you must do the following:
-
Install the Prettier extension in your code editor
-
Configure Prettier to format the code on save in your code editor
-
You're all set! Now, every time you save a file, Prettier will format the code to a consistent style