Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maruffahmed/basic-express-authentication

This is a basic session based user authentication system by using express the Node.js framework. I used MongoDB as a database.
https://github.com/maruffahmed/basic-express-authentication

authentication express mongodb nodejs

Last synced: about 1 month ago
JSON representation

This is a basic session based user authentication system by using express the Node.js framework. I used MongoDB as a database.

Awesome Lists containing this project

README

        

# Basic express user authentication system

This is a basic session based user authentication system by using express and mongoDB

### [Demo](https://basic-express-authentication.herokuapp.com/)

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

### Prerequisites

You need node js installed to your local machine.

### Installing

I used a npm package name `bcrypt` that required python. Make sure you have installed python on your local machine.

For setup python on your npm dependency management run this command:
```
npm config set python [python.exe file address of your local machine]
```

#### Example command

```
npm config set python "C:\Users\User\AppData\Local\Programs\Python\Python36-32\python.exe"
```

Make sure you have installed MongoDB on your local machine.

[MongoBD](https://www.mongodb.com/) - MongoDB website

To connect MongoDB with the app, use your MongoDB connection string into `app.js` :
![Example](/img/MongoDb_connection_string.png)

Run this command for install all the packages i used:

```
npm install
```

To run the server, use:

```
npm start
```

## Built With

* [Express](https://expressjs.com/) - The web framework used
* [Npm](https://www.npmjs.com/) - Dependency Management
* [MongoBD](https://www.mongodb.com/) - Database

## Authors

* **Md Maruf Ahmed** - *Font end developer* - [Qbytesoft ](https://qbytesoft.com/)