/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

Primary LanguageTypeScript

Installation

  1. Clone the repository from your terminal:

    git clone https://github.com/ZeroWk-EM/ServerTS-Mongoose.git
    
  2. Install the dependencies:

    npm install
    
  3. Create .env file and set the required environment variables.

    PORT=
    MONGO_URL=
    SECRET_JWT=
    SALT_ROUND=
    
  4. Start the server:

    npm  start
    
  5. Test request:

    npm run test