The backend part of knowyourvocab
A backed part of vocabulary assesment test I created to help my teacher girlfriend with the trasition from on-site to remote teaching.
This contains saving the test to database, retriving list of all students with time and date of creation and getting specific students data.
- Typescript v4.2.3
- Express v4.17.1
- Mongoose v5.12.2
- Passport v0.4.1
- Nodemailer v6.6.0
To run this project locally, clone it and install using npm:
$cd ../knowyourvocab-back
$npm install
then, you will need to create a nodemon.json file, containing "env" object with following properties:
- "DB_NAME": your mongoDB database name
- "DB_PASSWORD": database password
- "DB_USER": database user
- "JWT_STRING": jwt token secret string
- "VERIFICATION_STR": a string to give to users that are allowed to register
- "WEBSITE_URL": fronted site address, for CORS
Additionally, if you want mailing notifications to work:
- "MAILING_LIST": string with comma-separated email adresses, where to send notification
- "EMAIL_HOST": string with smtp email provider
- "EMAIL_USER": email adress
- "EMAIL_PASS": email password
Finally, run it using npm:
$npm run startdev