Skip to content

lucaf1990/effect_be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effect TS Backend Service

This repository contains a backend service built with Effect TS, providing a powerful, type-safe foundation for your applications.

🚀 Getting Started

Prerequisites

Installation

  1. Clone the repository
  2. Install dependencies:
    pnpm i

Configuration

Create a .env file in the root directory with the following variables:

PORT=3005
HOST=http://localhost:
DATABASE_URL=postgres://<USERNAME>:<PASSWORD>@localhost:<PORT>/<DB_NAME>

# Required for /api/account/signUp
EMAILJS_PUBLIC_KEY=
EMAILJS_SERVICE_ID=
EMAILJS_TEMPLATE_ID=

# Email Configuration
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM=

# Required for /api/ai/assistant
ANTHROPIC_API_KEY=

Running the Application

Start the development server:

pnpm run dev

Once running, you can access the service at: http://localhost:3005

🛠️ API Endpoints

  • User Registration: /api/account/signUp (requires EmailJS configuration)
  • AI Assistant: /api/ai/assistant (requires Anthropic API key)

📝 Notes

  • Make sure to properly configure your database connection in the DATABASE_URL variable
  • Email functionality requires valid SMTP credentials
  • The AI assistant feature uses Anthropic's API

© 2024 Effect TS Backend Service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published