This is a sample project of bank account with the NestJS framework.
- Clone this repository to your local system:
git clone https://github.com/samuelsankys/Ripio-Trade.git
- Navigate to the project directory:
cd Ripio-Trade
- Install project dependencies:
npm install # or yarn install
To start the development server, first make a copy of the .env.example
file and rename it to .env
. Modify the database access keys if you want to use your local database. If you don't have a database, you can create one by running:
docker-container up
If you don't have PostgreSQL installed, initialize the docker-container
that will run a container with a database on port 5433.
-
Create a database named
ripio
-
Run for create tables via migration:
npm run prisma:run-migrations
- Run the following command:
npm run start:dev # or yarn start:dev
This will start the development server at http://localhost:3000
. You can access the root endpoint in your browser or using tools like Postman or curl.
After starting the development server, you can access the API documentation at http://localhost:3000/api
.
To run unit and integration tests, execute the following command:
npm run test # or yarn test
To run end-to-end (e2e) tests, execute the following command:
npm run test:e2e # or yarn test:e2e
Due to time constraints, I abstracted the implementation of some functionalities. They are:
- Generation of account number, agency, digit.
- Transaction status
This project is licensed under the MIT License. See the LICENSE file for details.