This repository contains a backend service built with Effect TS, providing a powerful, type-safe foundation for your applications.
- Clone the repository
- Install dependencies:
pnpm i
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=
Start the development server:
pnpm run dev
Once running, you can access the service at: http://localhost:3005
- User Registration:
/api/account/signUp
(requires EmailJS configuration) - AI Assistant:
/api/ai/assistant
(requires Anthropic API key)
- 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