This is my latest code (most recent version) for Task 3 of the Delta Inductions 2023 (Web development)
Refer Normal Mode Branch
Refer Hacker Mode Branch
Clone the main branch of this repo into your folder
Follow the guide here
Inside MySQL Workbench, open the default local instance
Create database quizdb in this local instance of MySQL
Navigate to server > config > config.json
Inside the development options, change the values according to your MySQL configurations (username and password)
From the main repo folder, cd client and cd react in different terminals
Server side
JWT_SECRET=<some random string>
Client side
REACT_APP_BASE_URL=http://localhost:3001
URL would vary if hosted the server on different IP or port. By default, this is the URL for development phase
Update the modules inside server terminal using
npm update
Run the server inside server terminal using
npm run dev
Update the modules inside client terminal using
npm update
Run the server inside client terminal using
npm run dev
In the future, you can simply run the
npm run dev
command for both client and server after every new version!