Coder Social home page Coder Social logo

node-login's Introduction

License People Stars Forks Watches Last Updated

Simple Login Server ๐Ÿ”‘๐Ÿšช

node-login Demo
node-login screenshot

What is this

A login API server written in node.js and mongo It is a simple login server, which can be used to handle authentication for a web app.

Inspiration

Was exploring ejs and decided to build this.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of node and mongo

Getting node-login

To get node-login, follow these steps:

git clone https://github.com/2kabhishek/node-login
cd node-login

Using node-login

Setting Up Mongo

For using the app you will need a working MongoDB instance, you can use either MongoDB Atlas or a local instance. To set the MONGO_URI env var use the following command.

export MONGO_URI="mongodb+srv://username:password@db-location"

Setting Up Node

You will need to have a working version of Node and npm installed on your system.

After that you can run the following command to install the required packages.

npm install

Running The Server

To run the server execute the following command

node server.js

Web Application Access Instruction

After running the server, open up your web browser and go to this url to access the Web App.

http://localhost:3000

How it was built

node-login was built using neovim, node, mongo, express among others.

Challenges faced

  • Setting up MongoDB locally was a bit tricky, using docker or Atlas is recommended.

What I learned

  • Explored ejs
  • Setup a basic session manager.

Hit the โญ button if you found this useful.

More Info

node-login's People

Contributors

2kabhishek avatar dependabot[bot] avatar

Stargazers

Manthan Ankolekar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.