This project provides a backend for a loan application system.
Docker
Node.js and npm
Create a file named .env in your project directory. Copy the environment variables from .env.test to .env. These variables are essential for connecting to the database.
Open a terminal or command prompt and navigate to your project directory.
Run the following command to install the project's dependencies:
```
npm install
```
If you want to populate the database with initial data (seeds), run the following command:
```
npx prisma db seed
```
```
npm run start
```
This will start the backend server, typically listening on port 3000 by default.
Once the application is running, you can view the API documentation in your web browser at:
http://localhost:3000/swagger
This project also includes a docker-compose.yml file for a convenient way to run the application and its dependencies using Docker Compose.
If you haven't already, install Docker Compose. Refer to the official documentation for installation instructions: https://docs.docker.com/compose/install/
In your terminal, navigate to your project directory and run the following command:
```
docker-compose build
```
This will build the Docker images for the application and its dependencies.
Run the following command to start the application using Docker Compose:
```
docker-compose up -d
```
The -d flag detaches the containers from the terminal, allowing them to run in the background.
The application will be accessible at http://localhost:3000.