| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Reddit-like platform for Albanian developers built with Nuxt 4, Nuxt UI 4, and Firebase.
Create a .env file with:
# Firebase Client Config
NUXT_PUBLIC_FIREBASE_API_KEY=your_api_key
NUXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_auth_domain
NUXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NUXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_storage_bucket
NUXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NUXT_PUBLIC_FIREBASE_APP_ID=your_app_id
# Firebase Admin (Server-side)
FIREBASE_PRIVATE_KEY=your_private_key
FIREBASE_CLIENT_EMAIL=your_client_email
# Base.al OAuth (Optional - for OAuth login)
OAUTH_BASE_CLIENT_ID=your_client_id
OAUTH_BASE_CLIENT_SECRET=your_client_secret
OAUTH_BASE_REDIRECT_URI=your_redirect_uri
NUXT_PUBLIC_OAUTH_BASE_AUTHORIZE_URL=https://accounts.base.al/oauth/authorize
NUXT_PUBLIC_OAUTH_BASE_TOKEN_URL=https://accounts.base.al/oauth/token
NUXT_PUBLIC_OAUTH_BASE_USERINFO_URL=https://accounts.base.al/oauth/userinfo# Install dependencies
npm install
# Start development server
npm run devfirebase deploy --only firestore:rulesTo view your database in Drizzle Studio:
npm run db:studio# Build for production
npm run build
# Deploy to Firebase
firebase deploy├── components/ # Vue components ├── composables/ # Composable functions ├── layouts/ # App layouts ├── middleware/ # Route middleware ├── pages/ # App pages/routes ├── plugins/ # Nuxt plugins ├── server/ # Server-side code │ ├── api/ # API endpoints │ ├── database/ # Database schema │ ├── middleware/ # Server middleware │ └── utils/ # Server utilities ├── drizzle.config.ts # Drizzle ORM config ├── nuxt.config.ts # Nuxt configuration └── firebase.json # Firebase config
# Run dev server
npm run dev
# Type checking
npm run typecheck
# Lint code
npm run lint
# Generate types
npm run postinstallThe app supports two authentication methods:
Traditional email and password authentication powered by Firebase.
OAuth integration with Base.al, the Albanian authentication provider. Users can sign in with their Base.al account.
OAuth Flow:
users/{userId}
- email, username, displayName, avatar, bio, karma
- createdAt, updatedAt
communities/{communityId}
- name, displayName, description, icon, banner
- memberCount, creatorId
- createdAt, updatedAt
posts/{postId}
- title, content, type, url
- authorId, communityId
- upvotes, downvotes, commentCount
- isDeleted, createdAt, updatedAt
postVotes/{userId}_{postId}
- userId, postId, value (1 or -1)
- createdAt
communityMembers/{userId}_{communityId}
- userId, communityId, role
- joinedAt
MIT
| Back | FazBrowse Home | New Git URL |