This is your passport boilerplate.
- Clone the repo
- Rename the folder to your Project
- Delete the
.git
file, when you are in the root of the file, you can pressls
and you should see a.git
file, then go ahead and runrm -rf .git
- Setup your
.env
file and add all the things you need! (look at mongoose movies for reference!) - in the project root
git init
git add .
to add all the starter codegit commit -m "setup boilerplate"
- go to github and create your github and create a repo (Without a readme or liscense you can add that later!)
- copy the remote address
- In your terminal add the remote
git remote add origin yourGithubRepo'sAddressGoesHere
git pull origin master
If a screen pulls up asking you to do something just press:q
and thenenter
(thats vim btw :) )git push origin master
- Setup your database connection string
- Then Setup Your User Model,
- Follow the steps from the lesson plan to get your Google login credentials for your
.env
file (create the file if you haven't), or you can just copy the ones from earlier if you want to reuse them. - Setup the Code in your config passport
- Setup your callback routes in your
routes/index
- Setup a view and test your login!
git commit -m "setup up oauth and User Model"