All Projects → MoathShraim → Nodejs Rest Api Project Structure Express

MoathShraim / Nodejs Rest Api Project Structure Express

Nodejs project structure practices for building RESTful APIs using Express framework and MongoDB.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nodejs Rest Api Project Structure Express

Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (+8.96%)
Mutual labels:  restful-api, mongoose, express, expressjs, jwt-authentication
Angular Full Stack
Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
Stars: ✭ 1,261 (+841.04%)
Mutual labels:  mongoose, mongodb, express, expressjs
Mean Stack Angular6 Crud Example
MEAN Stack Angular 6 CRUD Web Application
Stars: ✭ 69 (-48.51%)
Mutual labels:  mongoose, mongodb, express, expressjs
Mean Angular4 Chat App
MEAN stack with Angular 4 Chat App
Stars: ✭ 41 (-69.4%)
Mutual labels:  mongoose, mongodb, express, expressjs
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (+120.9%)
Mutual labels:  restful-api, mongoose, mongodb, express
Express Boilerplate
🚀 Starter project for a RESTful API in Node with Express & mongoose component-based
Stars: ✭ 9 (-93.28%)
Mutual labels:  mongoose, mongodb, express, jwt-authentication
Rest Api Nodejs Mongodb
A boilerplate for REST API Development with Node.js, Express, and MongoDB
Stars: ✭ 672 (+401.49%)
Mutual labels:  mongodb, express, expressjs, jwt-authentication
Nest Angular
NestJS, Angular 6, Server Side Rendering (Angular Universal), GraphQL, JWT (JSON Web Tokens) and Facebook/Twitter/Google Authentication, Mongoose, MongoDB, Webpack, TypeScript
Stars: ✭ 307 (+129.1%)
Mutual labels:  mongoose, mongodb, express, jwt-authentication
Node Express Mongodb Jwt Rest Api Skeleton
This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp
Stars: ✭ 603 (+350%)
Mutual labels:  mongoose, mongodb, express, jwt-authentication
Nodepress
😎 RESTful API service for Blog/CMS, powered by @nestjs
Stars: ✭ 829 (+518.66%)
Mutual labels:  restful-api, mongoose, mongodb, express
Jwt Node Vue
Repositório responsável pelo primeiro projeto da série de vídeos: Coding Stuff.
Stars: ✭ 29 (-78.36%)
Mutual labels:  mongoose, mongodb, express, jwt-authentication
Cheatsheets
JavaScript and Node.js cheatsheets
Stars: ✭ 1,191 (+788.81%)
Mutual labels:  mongoose, mongodb, express
Mern Stack Authentication
Secure MERN Stack CRUD Web Application using Passport.js Authentication
Stars: ✭ 60 (-55.22%)
Mutual labels:  mongodb, express, expressjs
Fullstack Shopping Cart
MERN stack shopping cart, written in TypeScript
Stars: ✭ 82 (-38.81%)
Mutual labels:  mongoose, mongodb, express
Isomorphic Redux Cnode
😊👻基于react->express->mongo技术栈的同构SPA
Stars: ✭ 123 (-8.21%)
Mutual labels:  mongoose, mongodb, express
Node React Ecommerce
Build ECommerce Website Like Amazon By React & Node & MongoDB
Stars: ✭ 1,080 (+705.97%)
Mutual labels:  mongoose, mongodb, expressjs
Nodejs Backend Architecture Typescript
Node.js Backend Architecture Typescript - Learn to build a backend server for Blogging platform like Medium, FreeCodeCamp, MindOrks, AfterAcademy - Learn to write unit and integration tests - Learn to use Docker image - Open-Source Project By AfterAcademy
Stars: ✭ 1,292 (+864.18%)
Mutual labels:  mongoose, mongodb, expressjs
Hobbies
Keeping track of your hobbies
Stars: ✭ 90 (-32.84%)
Mutual labels:  mongodb, express, jwt-authentication
Boilerplate Vue Apollo Graphql Mongodb
Start your magical stack journey!
Stars: ✭ 85 (-36.57%)
Mutual labels:  mongoose, mongodb, express
Appy Backend
A user system to bootstrap your app.
Stars: ✭ 96 (-28.36%)
Mutual labels:  restful-api, mongoose, mongodb

Node.js, Express and MongoDB Project Structure

This is a basic project structure to help you to start building your own RESTful web APIs (for Android, IOS, or JavaScript framworks) using Express framework and MongoDB with a good structure practices based on clean MVC Architecture.

Features

  • Fundamental of Express: routing, middleware, sending response and more
  • Fundamental of Mongoose: Data models, data validation and middleware
  • RESTful API including pagination,sorting and limiting fields
  • CRUD operations with MongoDB
  • Security: encyption, sanitization and more
  • Authentication with JWT : login and signup
  • Authorization (User roles and permissions)
  • Error handling
  • Enviroment Varaibles
  • handling error outside Express
  • Catching Uncaught Exception

Project Structure

  • server.js : Responsible for connecting the MongoDB and starting the server.
  • app.js : Configure everything that has to do with Express application.
  • config.env: for Enviroment Varaiables
  • routes -> userRoutes.js: The goal of the route is to guide the request to the correct handler function which will be in one of the controllers
  • controllers -> userController.js: Handle the application request, interact with models and send back the response to the client
  • models -> userModel.js: (Business logic) related to business rules, how the business works and business needs ( Creating new user in the database, checking if the user password is correct, validating user input data)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].