- Notifications
You must be signed in to change notification settings - Fork0
rohit10000/ourTest
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
It is an end to end real-time, responsive test website forhard-working aspiring candidates where they can practice forexams of their choice.
- Frontend: build in reactJs and bootstrap using javascript, HTMLand CSS
- Backend: build in nodeJs, mongoDB.
- User can select the Test category like JEE Advance, CAT, GATE, etc.
- User can further select the subsections inside of test category.
- Every sub-area's can have multiple topic.
- You can perform quiz on a particular chapter.
- Every chapter can have multiple questions.
- User can signup, login and logout.
- User can even view his dashboard.
- Admin can add or remove tests, sections, topics, questions.
- Any user can only login from only one device and can only loginto other device once it is logged-out from the logged-in device.
Actor | Use Case |
---|---|
User | Can select test category, subsection category and topic, can do quiz, can login, can see to dashboard, can only login from one device. |
Admin | Can add or remove tests, sections, topics, questions. |
As I have earlier there are 2 parts in this project. For frontendpart it is very simple. For the backend part, it is also verysimple just you have to run mongo server in local and importfew collections and then run the nodeJs server.
Clone the repository.
In the frontend folder run commandnpm install andnpm start.Now, your frontend app server will be running on port 3000.
Run mongoDB server on local and import certain necessarycollection to dB ourTest as is given in the folder/backend/database.
Then in the backend folder also, run commandnpm install andnpm startto run the nodeJs server.
Last thing you need to set the config file n frontendand backend.Add config.js file inside/frontend/src/sharedwith the following content:
export const baseUrl = <base url>;export const clientId = <clent id for google oauth>;
Also add a config.js file to/backend folder with the following code content:
const user = <user of mongo client>;const password = <password>;const host = <host ip>;const port = <host port>;const database = <db>;module.exports = { 'secretKey': <secretKey>, 'mongoUrl' : `mongodb://${user}:${password}@${host}:${port}/${database}?authSource=<...>`,}
Our basic structure will look like this:
Go head and have a code look!
If you want to see how I deployed my firstnodeJs app on google cloud. Feel free tocheckout thelink.
Happy Visiting!
About
An end to end test system built-in react js and node js.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.