This project is a NestJS application that handles PostgreSQL user and wallet address tables. The application is designed to provide a robust API for managing user and wallet data with the ability to create, read, update, and delete entries.
Ensure you have the following installed on your system:
- Node.js
- npm
- PostgreSQL
-
Clone the repository:
git clone https://github.com/Vikrantsingh22/NestJS-APP-Assesment.git
-
Navigate to the project directory:
cd NestJS-APP-Assesment
-
Install the dependencies:
npm install
-
Create a
.env
file from the sample environment file provided: -
Update the
.env
file with your PostgreSQL database connection details:DATABASE_URL="postgresql://test:test@localhost:5432/test"
-
Run the database migrations:
npx prisma migrate dev
-
Start the application:
npm run start
Now the server is running and you can access the API.
For detailed API reference, you can refer to the Postman documentation: API Documentation
This documentation provides a comprehensive guide on how to use the API endpoints, including examples of requests and responses.
DATABASE_URL
: Connection string for the PostgreSQL database.
To apply database migrations, run:
npx prisma migrate dev
This will ensure your database schema is up-to-date with the latest changes.
To start the application, use:
npm run start
The application will be available at http://localhost:3000
.