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