This is an open-source repository for Better Bedrock Project. It contains frontend and the backend of the website used by hundreds of thousands of people. This repository follows a Turborepo monorepo structure with separate frontend and backend packages, built with modern frameworks and tools. It provides a clean developer workflow, integrated PostgreSQL database, and easy environment configuration. 🚀
- 🗂 Monorepo Architecture: Powered by Turborepo for streamlined package management and shared tooling
- 🎨 Rich Frontend: Built with React + Vite, styled with Sass, monetized via LinkVertise
- ⚙️ Robust Backend: NestJS API using Prisma ORM & PostgreSQL for data storage
- 🔧 Validation & Schemas: Zod & class-validator enforce type safety and input validation
- 🛠 Developer Tools: Yarn scripts, ESLint, Prettier, and conventional commits ensure code quality
- 📑 API Docs: OpenAPI/Swagger specification for interactive API documentation
- ⛏ Ore-UI: Custom component library optimized for Minecraft-themed interfaces
- ⚛️ React
- 💅 Sass
- 🔡 TypeScript
- ✔ ESLint
- 🐘 PostgreSQL
- 📄 Swagger / OpenAPI
- 🎨 Prettier
- 🔗 LinkVertise
- 📐 class-validator
- 🏗 NestJS
- 🔨 Prisma
- 🚀 Vite
- 🔍 Zod
- 🧱 Ore-UI
- 🌐 Turborepo & Yarn
- 💲 Stripe
- 📧 Mailersend
# Fork the repository on GitHub, then:
git clone https://github.com/your-username/better-bedrock-web.git
cd better-bedrock-web
yarn install
Ensure you have PostgreSQL installed and running. Create a new database:
createdb better_bedrock_db
Create two .env files:
-
Frontend (
apps/frontend/.env):VITE_LINKVERTISE_ID=401625 -
Backend (
apps/api/.env):DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/better_bedrock_db" LINKVERTISE_API_KEY=your_linkvertise_api_key
# From (apps/api):
yarn prisma generate
📝 Note: every single time you update
schema.prismainapps/api, regenerate Prisma client with using this command in project scope:yarn generate:api
yarn dev
- Frontend: http://localhost:5173
- API: http://localhost:8084
yarn build
This compiles both apps/frontend and apps/api into production-ready bundles.
We welcome contributions! Please follow:
- 🍴 Fork & clone the repo
- 🌿 Create a feature branch (
git checkout -b feature/your-feature) - 🔄 Make changes and test with
yarn dev - 💬 Commit using Conventional Commits. See EU Git Conventions
- 🚀 Push to your fork & open a PR against
main - 📂 File Structure make sure to follow our file distribution and naming structure
- ✔️ Ensure the feature works on all platforms (mobile, desktop, etc) & adds value to the site
-
feat: A new feature
-
fix: A bug fix
-
docs: Documentation only changes
-
style: Formatting, etc.
-
refactor: Code change without feature or fix
-
test: Adding/correcting tests
-
chore: Build process or tools
git commit -m "feat: add user authentication flow"
This project is free to use, modify, and share — but you may NOT use it for commercial purposes.
- ✅ Use it personally or for learning
- ✅ Modify and share your changes
- ❌ No selling, paid services, or monetization
- ❌ No use in commercial products
📜 Full license text: LICENSE
🎉 Happy coding! If you have any questions, feel free to open an issue or join our Discord channel. 🌐


