All Projects → perkinsjr → authentication_boilerplate

perkinsjr / authentication_boilerplate

Licence: MIT License
A Node based Boilerplate for register, login, request password reset password. Using Sengrid to send emails

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to authentication boilerplate

mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+647.37%)
Mutual labels:  mongo, mongoose
mongoose-morgan
An npm package for saving morgan log inside MongoDB
Stars: ✭ 14 (-26.32%)
Mutual labels:  mongo, mongoose
NodeScalableArchitecture
A Scalable Node Architecture/Server. This repository contains a complete implementation of writing scalable nodejs server/architecture on my medium blog.
Stars: ✭ 62 (+226.32%)
Mutual labels:  mongo, mongoose
react-full-stack-starter
🎈Full-stack React boilerplate using `create-react-app`, Babel, Node.js, and express
Stars: ✭ 22 (+15.79%)
Mutual labels:  mongo, mongoose
express-typescript-mongoose-starter
A starter for Node JS, Express, Typescript, Mongoose application
Stars: ✭ 22 (+15.79%)
Mutual labels:  mongoose, node-boilerplate
Apriliya-Api
Simple Web API with user authentication
Stars: ✭ 19 (+0%)
Mutual labels:  register, mongoose
uuid-mongodb
📇 Generates and parses MongoDB BSON UUIDs
Stars: ✭ 94 (+394.74%)
Mutual labels:  mongo, mongoose
derivejs
DeriveJS is a reactive ODM - Object Document Mapper - framework, a "wrapper" around a database, that removes all the hassle of data-persistence by handling it transparently in the background, in a DRY manner.
Stars: ✭ 54 (+184.21%)
Mutual labels:  mongo, mongoose
NodeExpressCRUD
Node, Express, Mongoose and MongoDB CRUD Web Application
Stars: ✭ 45 (+136.84%)
Mutual labels:  mongo, mongoose
NodeRestApi
Node.js, Express.js and MongoDB REST API App
Stars: ✭ 38 (+100%)
Mutual labels:  mongo, mongoose
nutri.gram
Nutrition is the main source of life and although it has been our secondary instinct to check for nutritional value in the food we eat, the effect any diet has on our body and health is consequential. From the fact which connotes the value of nutrition in our diet, springs the idea of nutri.gram. nutri.gram is a mobile application that scans the…
Stars: ✭ 21 (+10.53%)
Mutual labels:  mongo, mongoose
mongoolia
Keep your mongoose schemas synced with Algolia
Stars: ✭ 58 (+205.26%)
Mutual labels:  mongo, mongoose
koa-session-mongoose
Mongoose store for Koa sessions
Stars: ✭ 29 (+52.63%)
Mutual labels:  mongo, mongoose
express-mongo-jwt-boilerplate
Express Mongo JsonWebToken boilerplate
Stars: ✭ 100 (+426.32%)
Mutual labels:  mongo, mongoose
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+1005.26%)
Mutual labels:  mongo, mongoose
nodejs-starter-template
You can use this template when you're starting a new project by using Node.js, Express, and Mongoose. It contains general concepts, you can customize it according to your needs.
Stars: ✭ 54 (+184.21%)
Mutual labels:  mongoose, node-boilerplate
nestjs-api-mongoose
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, etc. for the NestJS community 😻
Stars: ✭ 153 (+705.26%)
Mutual labels:  mongo, mongoose
ark.db
Small and fast JSON database for Node and browser. 😋
Stars: ✭ 65 (+242.11%)
Mutual labels:  mongo, mongoose
mongoose-slug-plugin
Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
Stars: ✭ 21 (+10.53%)
Mutual labels:  mongo, mongoose
server-next
😎 The next generation of RESTful API service and more for Mix Space, powered by @nestjs.
Stars: ✭ 43 (+126.32%)
Mutual labels:  mongo, mongoose

Welcome to authentication-boilerplate 👋

Twitter: james_r_perkins

JWT authentication boilerplate using Mongo and Node

Install

npm install

Usage

npm run start

Needed to run

  1. Sendgrid account (free tier is 100 emails a day )
  2. Node
  3. Mongo
  4. Postman or App to link

How to setup

First go ahead and change these to your email a key of your choice and sendgrid API, email and name.

APP_SECRET=somekey
SEND_GRID_EMAIL='EMAIL'
SEND_GRID_API='API_KEY'
SEND_GRID_NAME='YOUR NAME OR COMPANY NAME FOR EMAIL'

API Routes

All routes run through the following

/api/auth/

to run register you need to call a post:

/api/auth/register 

{
  "fullName":"aname",
  "email":"[email protected]",
  "companyName": "name",
  "password": "password"
 }

to run login you need to call a post:

/api/auth/login 

{
  "email":"[email protected]",
  "password": "password"
 }

to run forgot password you need to call a post:

/api/auth/forgot-password 

{
  "email":"[email protected]",
 }

to run resetPassword you need to call a post:

/api/auth/reset-password

{
  "password":"newpassword",
  "confirmPassword":"newpassword",
  reset_password_token: "reset_token_from_email"
 }

Run tests

npm run test

Author

👤 James Perkins

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].