Skip to content

Mujhtech/b0

Repository files navigation

b0

Your AI backend builder.

Important

Currently in development.

Database Migration

To generate a migration file, run the following command:

$ cd ./backend && migrate create database/migrate/postgres migration_name

Running Locally

Prerequisites

  • Go 1.21 or later
  • Node.js 18 or later
  • PNPM
  • PostgreSQL 14
  • Redis

Without Docker

  1. Set up the database:
# Create PostgreSQL database
createdb b0
  1. Start the backend:
# Navigate to backend directory
cd backend

# Copy and configure environment variables
cp .env.example .env

# Install dependencies and build
go mod download
go build -o b0 ./cmd

# Run migrations
./b0 migrate up

# Start the server
./b0 server
  1. Start the frontend:
# Navigate to frontend directory
cd frontend

# Copy and configure environment variables
cp .env.example .env

# Install dependencies
pnpm install

# Start development server
pnpm run dev

The application will be available at:

With Docker

  1. Configure environment:
# Copy environment files
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env
  1. Start all services:
# Start the development stack
docker compose -f docker-compose.dev.yaml up -d

The application will be available at:

Available Services

  • Frontend: React application
  • Backend: Go API server
  • PostgreSQL: Database (port 5432)
  • Redis: Cache (port 6379)
  • Traefik: Reverse proxy and load balancer

Development

For hot-reload development:

  • Frontend changes will automatically reload
  • Backend requires rebuilding the Go binary for changes to take effect

About

Your AI backend builder

Resources

License

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors