All Projects → khriztianmoreno → nodejs-scaffolding

khriztianmoreno / nodejs-scaffolding

Licence: MIT license
A node.js sample application that demonstrates an architecture for building a complete production API with Node.JS, Express.JS and MongoDB

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to nodejs-scaffolding

Notion Clone
Stars: ✭ 2,048 (+6106.06%)
Mutual labels:  mongoose, expressjs
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (+342.42%)
Mutual labels:  mongoose, expressjs
Nodejs Rest Api Project Structure Express
Nodejs project structure practices for building RESTful APIs using Express framework and MongoDB.
Stars: ✭ 134 (+306.06%)
Mutual labels:  mongoose, expressjs
Angular Full Stack
Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
Stars: ✭ 1,261 (+3721.21%)
Mutual labels:  mongoose, expressjs
Bookmarks.dev
Bookmarks and Code Snippets Manager for Developers & Co
Stars: ✭ 218 (+560.61%)
Mutual labels:  mongoose, 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 (+3815.15%)
Mutual labels:  mongoose, expressjs
Forest Express Mongoose
🌱 Express/Mongoose Liana for Forest Admin
Stars: ✭ 145 (+339.39%)
Mutual labels:  mongoose, expressjs
Checksheet Manager
Checksheet Manager for college checksheets. Created with AngularJS and Node/Express/MongoDB.
Stars: ✭ 31 (-6.06%)
Mutual labels:  mongoose, expressjs
Angular2 Express Mongoose Gulp Node Typescript
AngularJS 2 (Updated to 4.2.0) Mean Stack application which uses Angular2, Gulp, Express, Node, MongoDB (Mongoose) with Repository Pattern Business Layer
Stars: ✭ 201 (+509.09%)
Mutual labels:  mongoose, expressjs
Express Es6 Starter
Starter project for creating a MVC express server with MongoDB
Stars: ✭ 178 (+439.39%)
Mutual labels:  mongoose, expressjs
Mean Stack Angular6 Crud Example
MEAN Stack Angular 6 CRUD Web Application
Stars: ✭ 69 (+109.09%)
Mutual labels:  mongoose, expressjs
Builderbook
Open source web application to learn JS stack: React, Material-UI, Next.js, Node.js, Express.js, Mongoose, MongoDB database.
Stars: ✭ 3,015 (+9036.36%)
Mutual labels:  mongoose, expressjs
Node React Ecommerce
Build ECommerce Website Like Amazon By React & Node & MongoDB
Stars: ✭ 1,080 (+3172.73%)
Mutual labels:  mongoose, expressjs
Angular Cms
An flexiable, extendable, modular, single CMS app based on Angular, Express, MongoDB
Stars: ✭ 109 (+230.3%)
Mutual labels:  mongoose, expressjs
Mean Angular4 Chat App
MEAN stack with Angular 4 Chat App
Stars: ✭ 41 (+24.24%)
Mutual labels:  mongoose, expressjs
Express Oas Generator
OpenAPI (Swagger) specification generator for ExpressJS applications
Stars: ✭ 138 (+318.18%)
Mutual labels:  mongoose, expressjs
Youtube Clone Nodejs Api
VueTube is a YouTube clone built with nodejs, expressjs & mongodb. This is the RESTful API repository.
Stars: ✭ 441 (+1236.36%)
Mutual labels:  mongoose, expressjs
Tvrboreact
Dream starter project: React, Redux, React Router, Webpack
Stars: ✭ 13 (-60.61%)
Mutual labels:  mongoose, expressjs
Amazona
Build Ecommerce Like Amazon By MERN Stack
Stars: ✭ 152 (+360.61%)
Mutual labels:  mongoose, expressjs
Generator Api
🚀 Yeoman generator for creating RESTful NodeJS APIs, using ES6, Mongoose and Express
Stars: ✭ 247 (+648.48%)
Mutual labels:  mongoose, expressjs

Node.JS - Scaffolding API

All Contributors PRs Welcome

Hello, and welcome! This Node.JS sample application that demonstrates an architecture for building a complete production API with Node.JS, Express.JS and MongoDB It features an architectural demonstration of these features:

  • Built with Node.js and Express
  • REST API with authentication scheme

Express Router and Routes

Route HTTP Verb Route Middleware Description
/api/users GET Get list of users
/api/users POST Creates a new user
/api/users/:id GET isAuthenticated Get a single user
/api/users/:id DELETE hasRole('admin') Deletes a user, restriction: 'admin'
/api/users/me GET isAuthenticated Get my info
/api/users:id/password PUT isAuthenticated Change a users password

Usage

Basic example Create USER /api/users:

Request Body:

{
  "name": "CRISTIAN MORENO",
  "email": "[email protected]",
  "password": "my-secret-password"
}

Response:

{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1OWFiNzkyMWQ1Yzk3NjJlZGQzZmUwZDgiLCJpYXQiOjE1MDQ0MDk4ODksImV4cCI6MTUwNDQyNzg4OX0.2gZPXZ-dQc3kQ1fcIDryHm4gIqWLvcw6guAOnP0ueGU"
}

Getting Started

Prerequisites

Developing

  1. Run npm install to install server dependencies.

  2. Run mongod in a separate shell to keep an instance of the MongoDB Daemon running

  3. Run npm run dev to start the development server. It should automatically open the client in your browser when ready.

  4. Open browser http://localhost:3030/api/helloworld.

Contributors

Thanks goes to these wonderful people (emoji key):


Khriztian Moreno

💻 📖 💡

This project follows the all-contributors specification. Contributions of any kind welcome!

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].