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
frontend
directory the frontent code written in React. - The
backend
contains 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 [email protected]: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 [email protected]:<username>/redesigned-tt.git (fetch)
origin [email protected]:<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 [email protected]: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 [email protected]:<username>/redesigned-tt.git (fetch)
origin [email protected]:<username>/redesigned-tt.git (push)
upstream [email protected]:MiHarsh/redesigned-tt.git (fetch)
upstream [email protected]:MiHarsh/redesigned-tt.git (push)
- Install
concurrently
by runningnpm run pre-install
on terminal.
- Make sure you are inside the root of the project (i.e.,
./redesigned-tt/
folder). - Setup environment variables in
.env
files of all folders according to.env.sample
files. - Run
npm run start-with-install
to 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 start
to run the frontend and backend concurrently.
- Download and Install Nodejs
- Run
cd .\backend
to go inside the Node.js server folder for Windows or Runcd backend
to go inside the Node.js server folder for Linux. - Run
npm install
to install all the dependencies. - Create a new file named
.env
and add the environment variables according to.env.sample
file. - Run
npm start
to start the node backend server.
- Run
cd frontend
to go inside the frontend folder. - Run
npm install
to install all the dependencies. - Create a new file named
.env
and add the environment variables according to.env.sample
file. - Run
npm start
to start the frontend backend server.