Secrets is a Node.js app that allows the users to submit their secrets anonymously! It means your identity would never be revealed to the public and only your secrets will be listed along with everybody else's. Give it a try and let me know!
- Clone the repository by:
git clone https://github.com/PouriaCh/Secrets-with-Website-Authentication.git
-
Make sure you have installed Node.js in your local machine.
-
Go to the main folder of the repository and run the following command:
npm install
This will make sure that you install all the required modules listed in package.json.
- This app integrates Open Authentication (OAuth) for Google, Facebook, and GitHub users. The middleware that we use for authentication is Passport.js which offers simple authentication for Node.js apps.
You need to include Google, Facebook and GitHub strategies for OAuth purposes. Check out the following links:
Follow the instructions step-by-step according to these links.
- Create a file named
.envinside the main folder of the project. You need to copy yourCLIENT_IDandCLIENT_SECRETfor each strategy mentioned above. Something like:
SECRET=thisisourlittlesecret.
SESSION_SECRET=Our little secret.
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
FACEBOOK_APP_ID=...
FACEBOOK_APP_SECRET=...
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...
Instead of ..., insert your own data from the Developer Console of Google, Facebook, and GitHub (without any , or "" or space). Make sure your .env is listed inside the .gitignore file in case you want to push your work to GitHub.