Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/maruffahmed/basic-express-authentication
- Owner: maruffahmed
- Created: 2020-05-15T17:20:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T06:06:23.000Z (about 2 years ago)
- Last Synced: 2023-08-01T14:35:30.385Z (over 1 year ago)
- Topics: authentication, express, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 760 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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/)