- Git
- NodeJS, version 14.x
- Google Maps API
- Firebase and Realtime Database
git clone https://github.com/spider-hand/Geoguess-Master.git
See the instruction in the link above.
See the instructions in the link above.
Create files named .env.development.local
in this project to put environment variables.
The files should look like this. (Replace the values with yours you created at STEP 2 and 3.)
.env.development.local
NODE_ENV=development
BASE_URL=http://localhost:8080/
VITE_API_KEY=YOUR_GOOGLE_MAPS_API_KEY
VITE_FIREBASE_API_KEY=YOUR_FIREBASE_API_KEY
VITE_FIREBASE_AUTH_DOMAIN=YOUR_FIREBASE_AUTH_DOMAIN
VITE_FIREBASE_DATABASE_URL=YOUR_FIREBASE_DATABASE_URL
VITE_FIREBASE_PROJECT_ID=YOUR_FIREBASE_PROJECT_ID
VITE_FIREBASE_STORAGE_BUCKET=YOUR_STORAGE_BUCKET
VITE_FIREBASE_MESSAGING_SENDER_ID=YOUR_FIREBASE_MESSAGING_SENDER_ID
VITE_FIREBASE_APP_ID=YOUR_FIREBASE_APP_ID
VITE_FIREBASE_MEASUREMENT_ID=YOUR_FIREBASE_MEASUREMENT_ID
.env.production.local
NODE_ENV=production
...
Now you can run this project on local.
npm install
npm run serve
npm run test:unit
npm run test:e2e
npm run lint