{"repo":"typeonce-dev/effect-backend-example","free":true,"listed":false,"github":"https://github.com/typeonce-dev/effect-backend-example","clone":"git clone https://github.com/typeonce-dev/effect-backend-example.git","description":"Example of backend API written with effect that connects to a SQL database (included local Docker configuration with postgres and PgAdmin) ⚡️","language":"TypeScript","stars":28,"topics":["api","backend","effect","effect-ts","pgadmin","postgres-database","postgresql"],"license":null,"category":"databases-storage","readme_excerpt":"How to implement a backend with Effect @effect/platform provides a type safe API for building backend apps. Any runtime, any database, and with all the features you expect from a TypeScript backend. Check out the full article to learn how to get started 🚀 Getting started This repository includes the following: - Shared effect API definition ( packages/api ) - Backend implementation with effect ( apps/server ) - Frontend implementation with TanStack Router ( apps/client ) - Docker compose for local Postgres + PgAdmin environment ( docker-compose.yaml ) First, open Docker Desktop and execute the below command to start the database and PgAdmin: Make sure to create a .env file inside both the root directory and apps/server , containing the parameters listed inside .env.example . This will start the database and PgAdmin. You can access http://localhost:5050/ to login into the local PgAdmin dashboard . Use the credentials from .env : PGADMIN MAIL + PGADMIN PW . You can then execute both server and client in the monorepo. Open a second terminal and run the below commands: This will start client on http://localhost:3001/ , and server on http://localhost:3000/ . Done ✨ Server, client, and database all now all connected. Explore more of the effect API by playing around with the code in the repository 🕹️ Check out the full article for the details of how the code works 🚀","default_branch":null,"files":null,"tree":[],"storefront":"/r/typeonce-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typeonce-dev/effect-backend-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}