This is a full stack project. I used react for the frontend. MongoDB and Express.js for the backend. It comprises of the following features
- Sign In/Sign Up
- Snake game with current score and high score
- Leaderboard (Under work)
Deployed using Netlify(frontend) and Railway(backend).
- latest version of nodejs
- mongoDB URI (sorry I can't reveal mine)
- Clone the repo
- For the frontend just go to the directory
- create a .env.local file with the following key-values:
- VITE_API_URL=
http://localhost:5000
- VITE_API_URL=
- Run
npm install
- Run
npm run dev
- create a .env.local file with the following key-values:
- For backend
- create a .env.local file with the following key-values:
- MONGO_URI =
your-mongo-URI
- JWT_SECRET =
"any-32-char-string"
- MONGO_URI =
- navigate to /backend
- Run
npm install
- Run
npm run devstart
- create a .env.local file with the following key-values:
- In the browser navigate to 'localhost:5173'