/express-mongodb-ts

🙌 MVC based express server with typescript and monogdb as database except V part

Primary LanguageTypeScript

Quick Start

The quickest way to get started with backend server use github repository and clone as shown below:

Requirements

  • Have Node v10.16.3 or higher installed for better use
  • Have MongoDB(4.2) installed and a local server running
  • Have TypeScript 1.5.0-beta or higher installed globally (npm i -g tsd typescript@^1.5.3-beta)
  • Code quality is maintained with the help of TSLint
$ git clone https://github.com/AlxPatidar/express-mongodb-ts.git server
$ cd server

Install dependencies and devDependencies:

$ yarn install / npm install

Start mongodb server:

$ sudo service mongod start

Tests

To run the test suite, first install the dependencies, then run npm test:

$ yarn install
$ yarn test

Start Server

Configuration environment and change basic credentials:

$ cp .env.example .env

Start server:

$ yarn start

Start the development server:

$ yarn start:dev

View the APIs at: http://localhost:4003

Features

  • Express
  • Use Typescript
  • Super-high test coverage(use jest as testing tools)

Docs & Community