/mongoose-express-ts

Mongoose Node.js Express code in TypeScript complete with middleware, models, routes, and types.

Primary LanguageTypeScript

Mongoose Node.js Express TypeScript application boilerplate.

image

Prerequisites

To build and run this app locally you will need a few things:

Getting started

  • Clone the repository
git clone --depth=1 https://github.com/vimaltiwari2612/mongoose-express-ts.git <project_name>
  • Install dependencies
cd <project_name>
npm install
npm run tsc
  • Build and run the project with auto reload (nodemon)
npm run server
  • Build and run the project
npm run start

Finally, navigate to http://localhost:5000/ and you should see the API running!

Project Details

image

  • Model : Schema and POJO creation
  • Controller : for Business Logic
  • Route : for API
  • Util : for helper classes

Credits

https://github.com/polcham/mongoose-express-ts