A quiz web application
A simple multiply choice quiz application providing user quiz scores, and customization for admin user.
- You need to install node.js, mongodb, and git on your computer.
- Open a terminal.
- Go into folder where you want to setup project.
- Run this command to copy repository locally:
git clone https://github.com/alisariyer/quizer.git
- Go into project folder by running this command:
cd quizer
- As we need to run database and server, it's recommended to open project in VSCode. To do this, run in terminal:
code .
- Open terminal in VSCode by using shortcut: CTLR+`
- Then install all dependencies:
npm install
- Run your mongo database:
mongod
(for windows) - Open a second terminal in VSCode terminal panel.
- Check current folder that is the project folder.
- Copy .env.example file and rename as .env. Then in .env file modify environment variables. (You can just for now change DB_NAME).
- Seed the database by the sample data(questions):
npm run seed
- Run server app:
npm start
- Voilà. Go to http://localhost:3000 page to see project.
- Now you sign up and test yourself.
- Node.js
- Express.js
- SASS
- MongoDB
- Ejs
- A random quiz (actually only front-end questions)
- User registration/login
- Score table
- Add/Edit/Delete questions
- RestFul
- ...