WEPIECES is a highly inspired application starter kit based on create-t3-app. It’s 100% production ready and built with technologies like Bun, Hono, Træfik, Redis, Docker, React, tRPC, Drizzle, Jotai, Zod, Tailwind, Jose, and more. The goal of this project is to provide a modern web application framework that doesn't require features like server-side rendering (SSR) or search engine optimization (SEO). It’s an ideal choice for fast and simple deployment using Docker or even Bun executables, requiring little to no configuration.
- 🔥 Full-stack development with Hono, tRPC and React.
- 📦 Modular architecture with a separation of concerns
- 🔐 Authentication with Jose
- 🐘 PostgreSQL database with Drizzle
- 🐋 100% Production Ready with Docker
- 🚢 Ready to deploy to any VPS or Cloud provider
- Bun
- Hono
- tRPC
- Træfik
- Redis
- Docker
- React
- Vite
- Tanstack
- Jotai
- Drizzle
- PostgreSQL
- Zod
- Jose
- Tailwind
- ShadcnUI
- CLI integration for better project scaffolding and DX.
- Improve authentication and authorization. Add
database sessionsand permissions. - Integrate image uploads and storage management. Image optimization and compression with sharp.
- Bun 1.x or higher
- Docker
- Clone the repository:
git clone https://github.com/wepieces/wepieces.git
- Install dependencies:
cd wepieces
bun install
- Create a
.env
file based on the.env.example
file:
cp .env.example .env
- Start the development server:
bun run docker:dev
bun run dev
- Open your browser and navigate to
http://localhost:4000
.
To deploy the application to a production environment, follow these steps:
- Build the application for production:
bun run build
- Migrate the database:
Since the database ports should not be exposed in docker-compose, this will require some manual steps. Currently, you need to expose the ports and remove them after the migration in the docker-compose configuration.
bun run migrate
- Open your browser and navigate to
http://localhost
.
- Create a new project on Render.com
- Create a postgres database
- Create a new web service
- Import environment variables from
.env.example
file - Update
DATABASE
environment variable with your render database credentials - Update
SUPERADMIN
environment variables with your render credentials - Update
SECRET
environment variable with a random string (e.g.openssl rand -hex 32
) - Update
NODE_ENV
environment variable withproduction
- Deploy the project from your git repository
- Similar steps can be followed to deploy to other platforms.
- Create an instance on your provider.
- Install bun and docker.
- Clone the repository.
- Create a
.env
file based on the.env.example
file. - Build the docker image.
- Make sure to apply all security best practices to your server. DreamsofCode
https://wepieces.com username: superadmin password: superadmin
Contributions are welcome!