Skip to content

godnondsilva/revolt-fashion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revolt Fashion

An E-commerce fashion store using React and Firebase.

Frontend Documentation (React)

  • Clone this respository git clone <SSH/HTTPS URL>.
  • Change directory to the frontend directory cd revolt-fashion/frontend.
  • Install the dependencies npm install.
  • Run the application in development mode npm run start.
  • Deploy the frontend on Vercel.

Backend Documentation (Firebase)

  • Go to your firebase console and create a new project.

  • Create a new web project.

  • Make sure to copy and paste the configuration into src/utils/firebase/firebaseUtils.ts.

  • Go to the Authentication page and click on the Sign-in method tab, enable Email/Password login.

  • Go to the Firestore Database page and click on the rules tab, enter the following rules:

      rules_version = '2';
      service cloud.firestore {
          match /databases/{database}/documents {
              match /users/{userId} {
                  allow read, get, create;
                  allow write: if request.auth != null && request.auth.uid == userId;
              }
    
              match /categories/{category} {
                  allow read;
                  allow write: if request.auth != null && request.auth.uid == "YOUR_USER_DOCUMENT_ID";
              }
    
              match /{document=**} {
                  allow read;
              }
          }
      }
    

Releases

No releases published

Packages

No packages published

Languages