Sample REST API developed using Node.js, Express, and TypeScript.
Node.js is required to run this application. Please install Volta to automatically use the suitable Node.js version.
The recommended extensions for Visual Studio Code are listed in .vscode/extensions.json.
- Clone this repository.
git clone https://github.com/kwn1125/node-express-typescript-rest-api.git <project_directory>
- Install dependencies.
cd <project_directory>
npm install
- Rename
.env.sample
to.env
and update the values. - Apply the migration to your database.
npm run prisma:deploy
- Generate Prisma Client.
npm run prisma:generate
- Launch the application.
npm start