# Google map
VITE_GOOGLE_MAP_API_KEY=""
# Firebase
VITE_FIREBASE_API_KEY=""
VITE_FIREBASE_AUTH_DOMAIN=""
VITE_FIREBASE_DATABASE_URL=""
VITE_FIREBASE_PROJECT_ID=""
VITE_FIREBASE_STORAGE_BUCKET=""
VITE_FIREBASE_MESSAGING_SENDER_ID=""
# GraphQL
VITE_GRAPHQL_API_URL=""
VITE_GRAPHQL_WEBSOCKET_URL=''
PORT=4001
VITE_FIREBASE_LOCAL_SERVER=true/false
VITE_FIREBASE_EMULATER_URL="http://0.0.0.0:9099"
yarn install
yarn start
yarn build
yarn deploy
yarn lint --fix
See: https://github.com/CAMPUS-NYCU/CAMPUS-backend#running-in-the-docker
docker
docker compose
VITE_FIREBASE_AUTH_DOMAIN="0.0.0.0:9099
VITE_GRAPHQL_API_URL="http://localhost:8333/"
VITE_GRAPHQL_WEBSOCKET_URL='ws://localhost:8333/subscriptions'
VITE_FIREBASE_LOCAL_SERVER=true
VITE_FIREBASE_EMULATER_URL="http://0.0.0.0:9099"
eslint
prettier
We use github action to implement CI/CD process.
Yaml file is in .github/workflows/
CI.yml
- check eslint
predeploy.yml
- Deploy to new firebase channel, while pull request. For testing.
deploy.yml
- Deploy to prod firebase channel, while merging into master.
assets
images
components
// shared componentsconstants
pages
IndexPage
// waiting pageLoginPage
// login pageMapPage
// main page
utils
contexts
// Use react context to store statesMissionContext
TagContext
UserContext
functions
hooks
App.js
index.js