Demo Video Link
Alternate Video Link
Code Racer is a platform to play a type racing game online with your friends while also improving your coding abilities. Code Racer will help improve coding speed, syntactic memory, and styling etiquette to help any struggling developer.
- Install MongoDB community edition
- Open the repository in a code editor like VSCode
- In your terminal(routed to your code racer directory), run `npm install` to install the dependencies and get the node_modules folder.
- Run `npm start` to start your server to listen for clients
- Open a new terminal window and change the directory to the client folder (`cd client`) and then run `npm install` again to install the client's dependencies
- Change directories back to the server and run `npm start` to start the server.
- In a new terminal instance, go to your client directory and run `npm start` to start your react application. Multiple clients can be created locally by creating more terminal instances.
- Navigate the website to start a party or join an exisiting one and enjoy playing!
- Side Note: Since the server will be hosted locally, if you want to add more players, you need to open another terminal session, change the directory to client and run npm start. Currently, the game is set to support upto 4 players for testing but that can easily be changed by editing server.js and changing line 12 to add extra clients (or keep it open to all clients using RegEx)
