Skip to content

Commit

Permalink
Merge pull request #111 from shammy642/shammy642-readme-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
lucfercas authored Oct 25, 2024
2 parents 35def84 + 2105c8d commit 15f341c
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
Environment Variables:
# Poké Poké Guess Weight!
A quick-fire online multiplayer game where users simultaneously guess pokemon's weights.

api/.env
# Installation:
- Clone this github!
- Run `npm i` in the root, frontend and api folders.
- In api folder, add a .env file with the following contents:
`CORS_ALLOWED_URL="http://localhost:5173`
`PORT=3001`
`TIMER=20`
- In the frontend folder, add a .env file with the following contents:
- `VITE_BACKEND_URL="http://localhost:3001"`

- run `npm run dev` in frontend and api folders.
- visit http://localhost:5173 in your browser

NODE_ENV="development"
JWT_SECRET="secret"
CORS_ALLOWED_URL="http://localhost:5173"
PORT=3001
TIMER=10

frontend/.env

VITE_BACKEND_URL="http://localhost:3001"
# Tech Used
- Javascript
- NodeJS
- Express
- PokeAPI
- React
- Tailwind

0 comments on commit 15f341c

Please sign in to comment.