The project is created using Typescript , Prisma and NodeJS .
GET /api/player
Post /api/player
Parameter | Type | Description |
---|---|---|
name |
string |
Required. name of player |
country |
string |
Required. country |
Put /api/player/${id}
Parameter | Type | Description |
---|---|---|
name |
string |
Required. name of player |
country |
string |
Required. country |
GET /api/team/stats/${id}
Parameter | Type | Description |
---|---|---|
id |
number |
Required. Id of item to fetch |
To run this project run
npm run start
npx prisma migrate deploy
To run this project, you will need to add the following environment variables to your .env file
DATABASE_URL
API_PORT
Clone the project
git clonehttps://github.com/thapar-vansh/prisma-ORM.git
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run start:dev
To run tests, run the following command
npm run test
** Node, Express, Prisma, Typescript **