A platform to help schedule Quizes/ Tests, and extra classes and reduce clashes
The front end is created in React.js and Material UI. For creating backend, we used Nodejs. For the database, we used Google Firebase. We created a very flexible and versatile foundation for our codebase, so that in future its functionality could be easily extended and new agents could be easily added into it.
- This repository consists of 2 directory
frontend,backend. - The
frontenddirectory the frontent code written in React. - The
backendcontains webpages backendnodejs. - So, commit code to the corresponding services.
-
Fork the repo to your account.
-
Clone your forked repo to your local machine:
git clone https://github.com/MiHarsh/redesigned-tt.git (https)
or
git clone git@github.com:MiHarsh/redesigned-tt.git (ssh)
This will make a copy of the code to your local machine.
- Change directory to
redesigned-tt.
cd redesigned-tt
- Check the remote of your local repo by:
git remote -v
It should output the following:
origin https://github.com/<username>/redesigned-tt.git (fetch)
origin https://github.com/<username>/redesigned-tt.git (push)
or
origin git@github.com:<username>/redesigned-tt.git (fetch)
origin git@github.com:<username>/redesigned-tt.git (push)
Add upstream to remote:
git remote add upstream https://github.com/MiHarsh/redesigned-tt.git (https)
or
git remote add upstream git@github.com:MiHarsh/redesigned-tt.git (ssh)
Running git remote -v should then print the following:
origin https://github.com/<username>/redesigned-tt.git (fetch)
origin https://github.com/<username>/redesigned-tt.git (push)
upstream https://github.com/MiHarsh/redesigned-tt.git (fetch)
upstream https://github.com/MiHarsh/redesigned-tt.git (push)
or
origin git@github.com:<username>/redesigned-tt.git (fetch)
origin git@github.com:<username>/redesigned-tt.git (push)
upstream git@github.com:MiHarsh/redesigned-tt.git (fetch)
upstream git@github.com:MiHarsh/redesigned-tt.git (push)
- Install
concurrentlyby runningnpm run pre-installon terminal.
- Make sure you are inside the root of the project (i.e.,
./redesigned-tt/folder). - Setup environment variables in
.envfiles of all folders according to.env.samplefiles. - Run
npm run start-with-installto install all the dependencies and run frontend and backend concurrently. - The website would then be available locally at
http://localhost:3000/. - If you have already installed the dependencies, you can also run
npm run startto run the frontend and backend concurrently.
- Download and Install Nodejs
- Run
cd .\backendto go inside the Node.js server folder for Windows or Runcd backendto go inside the Node.js server folder for Linux. - Run
npm installto install all the dependencies. - Create a new file named
.envand add the environment variables according to.env.samplefile. - Run
npm startto start the node backend server.
- Run
cd frontendto go inside the frontend folder. - Run
npm installto install all the dependencies. - Create a new file named
.envand add the environment variables according to.env.samplefile. - Run
npm startto start the frontend backend server.