Better Programming

Advice for programmers.

Follow publication

Member-only story

Creating a REST API in Node.js with Express, Typescript, MongoDB and Docker — Part 1

Estefanía García Gallardo
Better Programming
Published in
11 min readJul 4, 2019

This is part one of a series of articles which will show you how to create a REST API in Node.js, using Express, TypeScript, Docker and MongoDB. Here are the remaining parts of this series:

Creating a REST API in Node.js with Express, Typescript, MongoDB and Docker — Part 2

Creating a REST API in Node.js with Express, Typescript, MongoDB and Docker — Part 3

You can find the full code here.

Introduction

In this series, we will be learning how to create our own RESTful API in Node.js using an excellent web framework named Express. However, before we start, a little theory:

REST stands for Representational State Transfer. An awesome style of software architecture designed by Roy Fielding for his doctoral dissertation. REST allows us to design loosely coupled applications by using the HTTP protocol.

HTTP provides us with the following verbs, or methods: GET, POST, PUT and DELETE, which correspond to Read, Create, Update and Delete (CRUD operations) respectively. There are a few other verbs, but they aren’t used as frequently. We will be using these…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Estefanía García Gallardo
Estefanía García Gallardo

Written by Estefanía García Gallardo

Just a person who’s in love with computer sciences 💕💕 Developer of Npkill ~ https://npkill.js.org/

Write a response