This starter is Made of express, typescript and mongoose application, designed for Restful API's,
- Latest version of Node to be installed(i recommend NVM, easier to install and possible to work with multiple node versions).
- Install MongoDB
npm install <= install all the npm Dependencies
npm run dev <= start the Nodemon and watch for changes.
http://localhost:3000 <= Check Server
STRUCTURE
├── dist <= typescript will compile js to this folder
├── node_modules
├── src
│ ├── .env <= for production, for other envs, use: .env.${NODE_ENV}
│ ├── api
│ │ ├── user <= Replace example for feature name
│ │ │ ├── user.controller.ts
│ │ │ ├── user.model.ts
│ │ │ ├── user.router.ts
│ ├── config
│ │ ├── express.ts
│ │ ├── routes.ts
│ ├── server.ts
│ ├── tsconfig.json
├── package.json
├── tsconfig.json
├── README.md
-
Add .env file .
-
Add JWT based authentication .
MIT
© Manish Kumar Jha