Create a basic login system using NodeJS, Express, and Javascript
If you want to know how to get that setup,
Check out my write-up here:
Or the video tutorial here:
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.
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