Create a basic login system using NodeJS, Express, and Javascript

This tutorial uses a boiler-plate Google Chrome Extension setup.

If you want to know how to get that setup,

Check out my write-up here:

Or the video tutorial here:


Let’s Begin.

We’ll start by creating our REST API.

A very basic Express server with two main routes, ‘/login’ and ‘/logout’.

We’ll need the express package of course.

>>npm init -y
>>npm install express

Note:

We’ve built an “authentication” middle ware function. It just simulates the act of looking up a user’s credentials on a database.

We won’t be creating an entire database for this lesson. Use SQL, MongoDb, whichever you like.


Let’s do some web development work before we get to actual Chrome Extension work.

We’ll create three pages.

A “Sign In” page, a “Sign Out” page, and a “Welcome Back” page. Nothing fancy

#web-development #programming #learn-to-code #google-chrome-extensions #chrome-extension #python

Create a Email/Password Login System for Your Chrome Extension
20.30 GEEK