Skip to content

A Vue js Signup/Login test application using Bcrypt and email verification

Notifications You must be signed in to change notification settings

LynxMasters/Vue-Login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue-Login

A Vue js Signup/Login test application using Bcrypt

This is a test repository for working with Bcrypt encryption for logins/password and Email Verification Signup.

If you want to test or work on your own, please fork repo or create your seperate work branch.

Example: ian/work-branch or jameson/testing-email-verification

If you'd like to suggest change to master please open a PR and add team as reviewers before merging

Run Locally

To run client

$ cd client
$ npm install
$ npm run dev

Install MongoDB

To run MongoDB

$ mongod

To run server

$ cd server
$ npm install
$ npm run dev

For PC

$ npm run dev:pc

Once running you can test server by going to http://localhost:8081/api/v1/users

You sould see the following

Image


Testing SendGrid Locally

  1. In server directory, create a new directory called config
$ cd server
$ mkdir config
$ cd config
  1. Create a .env file for sendgrid variables
$ echo "SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
  1. Open up sendgrid.env and edit it to the following
SENDGRID_API_KEY='YOUR_SENDGRID_API_KEY_HERE'
NO_REPLY_EMAIL='[email protected]'
SUBJECT='Custome subject....'
  1. Uncomment line 92 in server/models/users.js like so..
} else {
    // Send email verification
    sendEmailVerification(user)
  1. Sendgrid will now work

About

A Vue js Signup/Login test application using Bcrypt and email verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages