bun install
cp .env.example .env
bun prisma:migrate
bun run dev
Setup your postgresql db
bun prisma:seed
bun prisma:studio
bun prisma:reset
bun prisma:migrate
Also setup eventblend frontend locally https://github.com/harshmangalam/event-blend-frontend
- Typescript
- Bun
- Hono
- Prisma
- Zod
- Postgresql
-
/prisma/- contains prisma schema, seeds and migrations.
-
/src/config- contains all configurations file like constants, env config etc.. getting used throughout the application
-
/src/lib- contains lib initialization and utility functions.
-
/src/middleware- contains auth and other middlewares.
-
/src/schema- contains global zod schema that are reusable and getting used in more than one files.
-
/src/types- contains global types i.e
Variablestype for hono etc...
- contains global types i.e
-
/src/feature- contains platform feature i.e
- auth
- category
- event
- group
- location
- network
- topic
- user
- etc...
- contains platform feature i.e
Please go through CONTRIBUTING.md file before start contribution and code changes.
This project includes Docker support for easy setup and deployment, using Bun runtime.
- Bun
- Docker and Docker Compose (for Docker setup)
- PostgreSQL (for local setup without Docker)
-
Clone the repository:
git clone https://github.com/harshmangalam/eventblend-api.git cd eventblend-api -
Install dependencies:
bun install -
Create a
.envfile from the.env.example:cp .env.example .env -
Update the
.envfile with your local PostgreSQL credentials. -
Run Prisma migrations:
bunx prisma migrate deploy -
Start the server:
bun run dev -
Open http://localhost:3000 in your browser.
-
Clone the repository:
git clone https://github.com/harshmangalam/eventblend-api.git cd eventblend-api -
Create a
.envfile from the.env.example:cp .env.example .env -
Build and run the Docker containers:
docker-compose up --build -
In a new terminal, run Prisma migrations:
docker-compose exec event-blend-server bunx prisma migrate deploy -
The application will be available at
http://localhost:3000
- TypeScript
- Bun
- Hono
- Prisma
- Zod
- PostgreSQL
/prisma/: Contains Prisma schema, seeds, and migrations./src/config/: Configuration files./src/lib/: Library initialization and utility functions./src/middleware/: Auth and other middlewares./src/schema/: Global Zod schemas./src/types/: Global types./src/feature/: Platform features (auth, category, event, etc.).
To stop the running containers:
docker-compose down
To stop the containers and remove the volumes:
docker-compose down -v
To access the PostgreSQL database directly:
docker-compose exec db psql -U postgres -d eventblend
To view the logs of the event-blend-server:
docker-compose logs event-blend-server
For real-time logs:
docker-compose logs -f event-blend-server
Please read the CONTRIBUTING.md file before making any contributions.
Join our Discord Server: https://discord.gg/YNk8MRzb
Set up the Eventblend frontend locally: https://github.com/harshmangalam/event-blend-frontend