Welcome to the Effect API Example repository! This project shows how to create a type-safe API using Effect, the Effect platform, and Drizzle ORM. This guide will help you download and run the software easily, even if you have no programming experience.
Follow these steps to get up and running quickly.
To use this software, you need:
Visit this page to download: Download the latest release.
docker-compose.yml.Run the command below to start the server:
docker-compose up
Open your web browser and type in the following address:
http://localhost:3000
You are now accessing the API!
Hereβs a brief overview of the folder structure in this project:
effect-api-example/
βββ apps/
β βββ server/ # Bun HTTP server
β βββ src/
β β βββ api/
β β β βββ groups/ # API endpoint handlers
β β β βββ middleware/ # Auth middleware implementations
β β βββ db/
β β β βββ schema/ # Drizzle table schemas
β β β βββ migrations/ # Database migrations
β β β βββ SqlLive.ts # Database layer
β β βββ main.ts # Server entrypoint
β βββ scripts/
β β βββ seed.ts # Database seeding script
β β βββ client-example.ts # Example API client
β βββ docker-compose.yml # PostgreSQL container
β βββ drizzle.config.ts # Drizzle Kit configuration
βββ packages/
β βββ a
To tailor the server settings:
drizzle.config.ts file.This project is open-source and follows the MIT License. You can modify and use it as you wish.
If you want to help improve this project:
If you encounter difficulties or have questions:
Thank you for exploring the effect-api-example! Enjoy building your type-safe API.