Skip to content

isbik/bun-workspaces-docker

Repository files navigation

Bun Full-Stack Monorepo Template

A modern, production-ready full-stack TypeScript monorepo template using Bun as the JavaScript runtime. This template provides a solid foundation for building scalable web applications with a React frontend and Hono backend.

🚀 Features

  • Monorepo Structure using Bun's built-in workspaces
  • Frontend: React + Vite + TypeScript
  • Backend: Hono + Prisma + TypeScript
  • Shared Package: Common types and utilities
  • Docker Support: Production-ready Docker configuration
  • Development Tools: ESLint, TypeScript strict mode
  • Production-Ready: Nginx configuration with security headers
  • Database: MongoDB support via Prisma

🛠️ Tech Stack

  • Bun - Fast all-in-one JavaScript runtime
  • React - Frontend UI library
  • Vite - Frontend build tool
  • Hono - Backend framework
  • Prisma - Database ORM
  • TypeScript - Type safety
  • Docker - Containerization
  • Nginx - Web server and reverse proxy

🚦 Getting Started

Prerequisites

  • Bun installed on your machine
  • Docker (optional, for containerized deployment) !!!need install locally!!!
  • MongoDB instance (local or remote)

🛡️ Security

The template includes:

  • Secure Nginx configuration
  • HTTP security headers
  • CORS protection
  • Production-ready Docker setup

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published