Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build a Restful API with ExpressJS

Build a Restful API with ExpressJS

Ngalam Backend Community

September 26, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Programming

Transcript

  1. 2 Me? Name: Thariq Alfa Benriska Activity: Backend Engineer at

    Followersindo & Ngampus You can find me at @thariqalfa Hire me …. ?
  2. 3 Express Express is a minimal and flexible Node.js web

    application framework that provides a robust set of features for web and mobile applications. Express.js is used for creating server side of web application.
  3. 4 Restful API •  Client-Server •  Stateless •  Cacheable • 

    Uniform Interface •  Layered System •  Code on Demand
  4. 5 Endpoint •  GET /get_user/{id} •  POST /add_user •  POST

    /edit_user/{id} •  POST /delete_user/{id} •  GET /users/get_user/{id} •  POST /users/add_user •  POST /users/edit_user/{id} •  POST /users/delete_user/{id} •  GET /users/{id} •  POST /users •  PUT /users/{id} •  DELETE /users/{id}
  5. 7 Installation •  npm install express •  npm install mysql2

    •  npm install sequelize •  npm install redis