/event-blend-server

Open source meetup alternative backend api powered by Bun

Primary LanguageTypeScriptMIT LicenseMIT

Eventblend API Server

If you find this project helpful, please consider giving it a ⭐ to help it grow and support open source development!

Setup

Install dependencies

bun install

Add env variables

cp .env.example .env

Prisma migrations

bunx prisma migrate deploy

Start server

bun run dev

Setup your postgresql db

Open

http://localhost:3000

Also setup eventblend frontend locally https://github.com/harshmangalam/event-blend-frontend

Tech stack

  • Typescript
  • Bun
  • Hono
  • Prisma
  • Zod
  • Postgresql

Folder structure

  • /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 Variables type for hono etc...
  • /src/feature

    • contains platform feature i.e
      • auth
      • category
      • event
      • group
      • location
      • network
      • topic
      • user
      • etc...

Please go through CONTRIBUTING.md file before start contribution and code changes.

Join Discord Server: https://discord.gg/YNk8MRzb