Building a RESTful API

with Express and MongoDB

Presented by Tu Tran

Content

  1. What is the RESTful API?
  2. How to build a RESTful API?
  3. Hello Express
  4. Express routing, middleware, controller
  5. MongoDB, Mongoose
  6. Let do it

1. RESTful API?

API + HTTP

2. How to build a RESTful API?

View

Controller

Model

3. Hello Express

  • Fast, minimal and flexible
  • Routings, middleware
  • MVC
  • Demo

4. Routing & middleware

  • Routing
  • Middleware
  • Demo

3.1 Middleware

5. MongoDB and Mongoose

  • What is the MongoDB?
  • What is the Mongoose?
  • Schema, Model in Mongoose
  • CURD in Mongoose
  • Demo

6. Let do it

Building an API with Express, MongoDB and Mongoose

By Tu Tran

Building an API with Express, MongoDB and Mongoose

  • 288