Skip to content

BIN-PDT/WEBAUTH_EXPRESSJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. PROJECT

git clone https://github.com/BIN-PDT/WEBAUTH_EXPRESSJS.git && rm -rf WEBAUTH_EXPRESSJS/.git

For privacy reasons, follow the format of .env.example and replace the sensitive information in .env with your own.

  • Generate SECRET_KEY.

    openssl rand -hex 32
    
  • Register MongoDB Atlas or MongoDB Compass to obtain DATABASE_URI.

  • Register OAuth Application of Social Provider to obtain CLIENT_ID, CLIENT_SECRET & CALLBACK_URI.

  • Replace MAIL_USERNAME & MAIL_PASSWORD (Application Password) with your Gmail Account.

2. DEPENDENCY

npm install

3. RUN APPLICATION

npm run start:dev