OppoGamesDemo-2xspeed-720medqual.mp4
OppoGames is a fullstack social-gaming site, showcasing use of the MERN stack, Socket.io and Tailwind CSS.
Users can sign up, log in, and play a number of mini-games 1v1 with other users. Users can see their opponents moves in real-time.
- Install Node Version Manager (nvm)
Then follow the instructions to update your
brew install nvm
~/.bash_profile
. - Open a new terminal
- Install the latest version of Node.js, currently
18.1.0
.nvm install 18
- Install MongoDB
Note: If you see a message that says
brew tap mongodb/brew brew install mongodb-community@5.0
If you need to have mongodb-community@5.0 first in your PATH, run:
, follow the instruction. Restart your terminal after this. - Start MongoDB
brew services start mongodb-community@5.0
-
npm install in the three main folders:
; cd api ; npm install ; cd ../frontend ; npm install ; cd ../socket ; npm install
-
Start the server application (in the
api
directory); cd api ; JWT_SECRET=f6d278bb34e1d0e146a80b16ec254c05 npm start
-
Start the front end application (in the
frontend
directory)
In a new terminal session...
; cd frontend
; npm start
You should now be able to open your browser and go to http://localhost:3000/
-
Start the socket (in the
socket
directory)In a new terminal session...
; cd socket
; npm start