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 devTo run MongoDB
$ mongodTo run server
$ cd server
$ npm install
$ npm run devFor PC
$ npm run dev:pcOnce 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
.envfile for sendgrid variables
$ echo "SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env- Open up
sendgrid.envand 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.jslike so..
} else {
// Send email verification
sendEmailVerification(user)- Sendgrid will now work
