PakMeow is a video platform that allows users to watch and upload videos, similar to platforms like YouTube, Dailymotion, and Bilibili. It provides a user-friendly interface for content creators to share their videos and for viewers to discover, stream, and engage with a wide variety of content.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId} {
allow read, write: if request.auth != null && request.auth.uid == userId;
allow create: if request.auth != null && request.auth.uid == userId
&& request.resource.data.uid == userId;
}
match /videos/{videoId} {
allow read: if true;
allow write: if request.auth != null;
match /interactions/{userId} {
allow read: if true;
allow write: if request.auth != null && request.auth.uid == userId;
}
}
}
}
Live Demo link: PakMeow