Image by Pete Linforth from Pixabay

THE ULTIMATE GUIDE — BUILD YOUR OWN FULL-STACK REACT APP

Set up an Express.Js App With Passport.Js and Mongodb for Password Authentication

Building the Backend for a Milestone Referral Program (I/II)

Fabian Bosler
The Startup
Published in
12 min readFeb 18, 2020

--

In this article, you will learn how to build a web app with Node.js, Express.js, Passport.js, and MongoDB to authenticate a user via REST-endpoint with password and email. You will also learn how to connect that endpoint with a frontend of your choice. The article is intended as a code-along guide, so boot up your VisualStudio and let’s go.

Structure of the article

In this piece, we will build the first version of the backend for a referral app. The article is self-contained up to the point where we connect the backend with our frontend. However, If you want to use your frontend, that is not a problem whatsoever. The same logic applies, and the explanations hold. If you want to read up on or download the frontend we have built, head over to the corresponding article:

--

--

Fabian Bosler
The Startup

EX-Consultant turned tech geek! Business intelligence, marketing, advanced analytics, and machine learning. 👉 https://medium.com/@fabianbosler/membership 👈