This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- nodejs >= 14.x
- npm >= 8.x
-
Clone the repo
git clone https://github.com/disalad/nodejs-auth.git
-
Install 3rd party packages.
npm install
-
Enter your mongodb URI, Google clientId, clientSecret and a sessionkey inside an
.env
file in the root directory.GOOGLE_CLIENT_ID = <Google Client ID> GOOGLE_CLIENT_SECRET = <Google Client Secret> GOOGLE_REFRESH_TOKEN = <Google Refresh Token> GOOGLE_REDIRECT_URI = <Redirect URI> MONGODB_URI = <Mongodb Atlas URI> COOKIE_SESSION_KEY = <Random Strong String> NODEMAILER_EMAIL = <Your Email> NODEMAILER_DISPLAYNAME = <Display Name For Your Emails> PORT = <Port That Starts The App>
-
Start the app in a development server.
npm run dev
Distributed under the MIT License. See LICENSE
for more information.
Project Link - https://github.com/disalad/nodejs-auth