-
Clone the repository from your terminal:
git clone https://github.com/ZeroWk-EM/ServerTS-Mongoose.git
-
Install the dependencies:
npm install
-
Create
.env
file and set the required environment variables.PORT= MONGO_URL= SECRET_JWT= SALT_ROUND=
-
Start the server:
npm start
-
Test request:
npm run test
ZeroWk-EM/ServerTS-Mongoose
This repo contains an Express server written in TypeScript and using the Mongoose driver for interaction with a MongoDB database. It includes RESTful API endpoints performing CRUD (create, read, update, delete) operations on a collection of data
TypeScript