All Projects → makinhs → Rest Api Tutorial

makinhs / Rest Api Tutorial

This is a sample source code for the article published on Toptal: https://www.toptal.com/nodejs/secure-rest-api-in-nodejs

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Rest Api Tutorial

Express Openapi Validator
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
Stars: ✭ 436 (+51.39%)
Mutual labels:  rest-api, expressjs
Nodejs Socketio Chat App
MEAN Stack & Socket.IO Real-time Chat App | A MEAN stack based Real Time chat application
Stars: ✭ 45 (-84.37%)
Mutual labels:  rest-api, expressjs
Swagger Express Middleware
Swagger 2.0 middlware and mocks for Express.js
Stars: ✭ 543 (+88.54%)
Mutual labels:  rest-api, expressjs
Practicalnode
Practical Node.js, 1st and 2nd Editions [Apress] 📓
Stars: ✭ 3,694 (+1182.64%)
Mutual labels:  rest-api, expressjs
Fiber
⚡️ Express inspired web framework written in Go
Stars: ✭ 17,334 (+5918.75%)
Mutual labels:  rest-api, expressjs
Rest Api Nodejs Mongodb
A boilerplate for REST API Development with Node.js, Express, and MongoDB
Stars: ✭ 672 (+133.33%)
Mutual labels:  rest-api, expressjs
Nodejs Restapi Using Express Mysql
Nodejs Restful API for CRUD operation using MySQL
Stars: ✭ 25 (-91.32%)
Mutual labels:  rest-api, expressjs
Typescript Restful Starter
Node.js + ExpressJS + Joi + Typeorm + Typescript + JWT + ES2015 + Clustering + Tslint + Mocha + Chai
Stars: ✭ 97 (-66.32%)
Mutual labels:  rest-api, expressjs
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (-49.31%)
Mutual labels:  rest-api, expressjs
Dinoloop
Rest API framework built on top of expressjs powered by Typescript.
Stars: ✭ 115 (-60.07%)
Mutual labels:  rest-api, expressjs
Bookmarks.dev
Bookmarks and Code Snippets Manager for Developers & Co
Stars: ✭ 218 (-24.31%)
Mutual labels:  rest-api, expressjs
Graphql Rest Proxy
Turn your REST API into GraphQL - A Proxy Server that pipes request from GraphQL to REST with GraphQL DSL, performant nested children, mutations, input types, and more.
Stars: ✭ 218 (-24.31%)
Mutual labels:  rest-api, expressjs
Generator Api
🚀 Yeoman generator for creating RESTful NodeJS APIs, using ES6, Mongoose and Express
Stars: ✭ 247 (-14.24%)
Mutual labels:  rest-api, expressjs
Ovpm
OpenVPN Management Server - Effortless and free OpenVPN server administration
Stars: ✭ 256 (-11.11%)
Mutual labels:  rest-api
Lumie
✨ An opinionated way to keep your express API organized
Stars: ✭ 277 (-3.82%)
Mutual labels:  expressjs
Deep Learning In Production
In this repository, I will share some useful notes and references about deploying deep learning-based models in production.
Stars: ✭ 3,104 (+977.78%)
Mutual labels:  rest-api
Safrs
SqlAlchemy Flask-Restful Swagger Json:API OpenAPI
Stars: ✭ 255 (-11.46%)
Mutual labels:  rest-api
Airflow Rest Api Plugin
A plugin for Apache Airflow that exposes rest end points for the Command Line Interfaces
Stars: ✭ 281 (-2.43%)
Mutual labels:  rest-api
Newsapp With Swiftui And Combine
Used: SwiftUI and Combine
Stars: ✭ 269 (-6.6%)
Mutual labels:  rest-api
nodearch
Node.js Backend Framework.
Stars: ✭ 14 (-95.14%)
Mutual labels:  expressjs

REST API Tutorial

This sample is published as part of the corresponding article at the Toptal Engineering Blog. Visit https://www.toptal.com/developers/blog and subscribe to our newsletter to read great posts!

Before using

  • Please make sure that you have:
  • Node.js installed (https://nodejs.org/)
  • MongoDB installed and running locally (https://www.mongodb.com/)
    • Using Windows, just open the terminal at where you installed mongo and run mongod.exe
  • Run npm install or yarn in your root project folder

Usage

To run the project, please use a command line the following:

  • npm start
    • It will run the server at port 3600.

2019-09-13 update

  • Refactored mongoose to a proper common service.
  • Added a Dockerfile and docker-compose configuration.

If you are familiar to docker and you have docker installed on your machine and just want to run the project without issues please do:

  • docker-compose build
  • docker-compose up
  • It will run the mongodb at port 27017 (for testing purposes only).
  • It will run the server at port 3600.

2020-02-01

I've created a 2020 version of this project using Typescript. If you might be interested on it, please check the following repository: https://github.com/makinhs/expressjs-api-tutorial

2020-09-09

  • Updated and pruned dependencies.
  • Fixed deprecation warnings.
  • Leveraged findOneAndUpdate to simplify PATCH code.
  • Changed default MongoDB server name to localhost to simplify first-time setup.
  • Checked that it works with the latest version of Node.js, 14.9.0.

2020-11-14

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