pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/typeonce-dev/effect-backend-example

7.css" /> GitHub - typeonce-dev/effect-backend-example: Example of backend API written with effect that connects to a SQL database (included local Docker configuration with postgres and PgAdmin) ⚡️
Skip to content

Example of backend API written with effect that connects to a SQL database (included local Docker configuration with postgres and PgAdmin) ⚡️

Notifications You must be signed in to change notification settings

typeonce-dev/effect-backend-example

Repository files navigation

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:

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.

docker compose up

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:

pnpm install
pnpm run dev

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 🚀

About

Example of backend API written with effect that connects to a SQL database (included local Docker configuration with postgres and PgAdmin) ⚡️

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy