/rosteam

ctf team task rosteam

Primary LanguageJavaScript

CTF Team Task.
"yeah we might have our own commitments. so heed to this only in your free time. feel free to copy from your previous works"

  1. your have to create a .env file in main directory.
  2. create a database in the name "rosteam"(don't mind the name).
  3. run the command "npm i" at the beginning and after every pull you make,
  4. run the command "npx sequelize-cli db:migrate" to setup the user table

use command "npm start" to run

contents of .env(update when you add env variables to your code.)
PORT = 3000
devurl = http://localhost:4000/
produrl = http://localhost:4000/
GOOGLE_CLIENT_ID = 275671672798-he61gabb7v3oikav843gl37h56nqubu1.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET = JjwJshwmMsp2J_4E_g8w9O2U
JWTENCRYPTION = encryptionstring
HASHALGO = sha256
PUBLICKEY = /../keys/public.pem
PRIVATEKEY = /../keys/private.pem
emailuser = --email--
emailpass = --app password--
EMAILVERIFIEDLINK = http://localhost:3000/account-verified

add folder keys to root and files public.pem and private.pem with a RSA key pair.
the user table is normal user table. see models/user.js for schema. Score denotes the score of user and the lastanswer is the timestamp of user's last answer.

each of us has other contacts so ping in case of need