invest
Postman Documentation: Make sure you have Postman Documentation. You can get it from Postman Documentation.
Before you begin, ensure you have the following installed:
-
Node.js: Make sure you have Node.js installed. You can download it from nodejs.org.
-
PostgreSQL: You need a PostgreSQL database to store product data. You can download and install PostgreSQL from postgresql.org, or you can use an existing PostgreSQL instance.
-
Database Setup:
If you have PostgreSQL installed, follow these steps:
- Create a PostgreSQL database named
poprev_db
. - Make sure you have a user with appropriate privileges for this database.
- Create a PostgreSQL database named
-
Clone the Repository:
Clone this repository to your local machine:
git clone https://github.com/Drex72/poprev-assessment
-
Navigate to the Project Directory::
Clone this repository to your local machine:
cd poprev-assessment
-
Install Dependencies::
Clone this repository to your local machine:
npm install
-
Database Configuration:
- Make sure you have a PostgreSQL database named
poprev_db
. - Copy the
.env.example
to the.env
file - Update the configuration in the
env
file .
- Make sure you have a PostgreSQL database named
-
Database Configuration:
Start the service in development mode using the following command:
npm run start:dev
This will start the service using Node.js and connect it to the PostgreSQL database.
-
Database Configuration:
Start the service in development mode using the following command:
docker-compose up
This will start the service using Docker.
The default configuration for the service and database connection is set up through the docker-compose.yml
file. If you need to adjust any configurations, you can do so in this file.
MIT