Skip to content

jaroslawkucharski/visited-countries

Repository files navigation

TECHSTACK

APPDEMO

https://visited-countries.vercel.app



APPCONFIG

1. Clone this repository and install dependencies

git clone https://github.com/jaroslaw91/visited-countries.git

cd visited-countries

pnpm install

2. Configure your firebase (https://cloud.google.com/firestore/docs/client/get-firebase)

  • Add Authentication and Sign-in method with Email/Password

  • Create Realtime Database and add rules:

    {
     "rules": {
       ".read": false,
       ".write": false,
       "users": {
         "$user_id": {
            ".read": "$user_id === auth.uid",
           	".write": "$user_id === auth.uid"
         }
       }
     }
    }
    
  • Create Storage and create images/ catalog

3. Add envs to the project (Sentry & Firebase)

VITE_SENTRY_DNS=
VITE_SENTRY_ALLOW_URL=

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=
VITE_FIREBASE_APP_ID=
VITE_FIREBASE_MEASUREMENT_ID=

4. Fire up the app with pnpm dev and... Enjoy!