This project is a benchmarking ranking API developed with Node.js, Express, TypeScript, and Prisma.
Make sure you have Node.js installed on your machine.
-
Clone this repository;
-
Navigate to the project directory;
-
Install the dependencies:
yarn
In the .env
file, assign a base64-encoded 32-byte (AES-256) value to API_KEY
. Ensure that this key is the same as the one used in the client applications.
-
Make sure you have a database configured and update the
.env
file with your database URL. Example:DATABASE_URL="mysql://user:password@localhost:3306/database-name"
-
Run the Prisma migration to configure the database:
npx prisma db push
-
To start the server, run:
npm run start
-
The server will be running at http://localhost:3000.