This project is a testing API for PT XSIS Mitra Utama
Before running the project locally, make sure you have the following prerequisites installed:
To get the project up and running locally, follow these steps:
-
Create the Database:
- Create a new database named
xsis_testing
. - Import the SQL file located in
/src/db/xsis_testing.sql
into the database.
- Create a new database named
-
Install Dependencies:
Open a terminal and navigate to the project directory. Run the following command to install the required dependencies:
npm install
-
Copy Environment:
- Copy the .env.example to your .env file.
-
Generate Prisma Client:
Run the following command to generate the Prisma client:
npx prisma generate
-
Run the Project:
- Start the project by running the following command:
npm run dev
This will start the development server. The project will be accessible at http://localhost:7000.
-
Test the Project:
- Test the project by running the following command:
npm run test
This will test the apps.