MetaHub is a social media application built using React and Firebase. The platform allows users to create personalized profiles, publish content, follow other users, and interact with posts through likes. The application is designed to provide a smooth and interactive user experience, leveraging modern front-end and back-end technologies.
git clone https://github.com/VictorBravim/MetaHub.git
cd MetaHub
npm install
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId} {
allow read: if request.auth != null;
allow write: if request.auth != null;
}
match /users/{userId}/followers/{followerId} {
allow write: if request.auth != null && request.auth.uid != null && request.auth.uid == followerId;
}
match /posts/{postId} {
allow read: if request.auth != null;
allow write: if request.auth != null;
allow delete: if request.auth != null && request.auth.uid == resource.data.userId;
}
}
}
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /postImages/{userId}/{allPaths=**} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
match /profileImages/{userId}/{allPaths=**} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
}
}