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
To run client
$ cd client
$ npm install
$ npm run dev
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
- In server directory, create a new directory called
config
$ cd server
$ mkdir config
$ cd config
- Create a
.env
file for sendgrid variables
$ echo "SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
- 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....'
- Uncomment line 92 in
server/models/users.js
like so..
} else {
// Send email verification
sendEmailVerification(user)
- Sendgrid will now work