Locutio is an AI-powered Translation Management System. It makes it simple to use AI to translate your content across multiple languages.
locutio.demo.mov
Before you begin, ensure you have the following installed:
- Node.js
- Yarn package manager
- PostgreSQL database
- OpenAI API key
- GitHub OAuth App (for GitHub integration)
- Clone the repository
- Install dependencies:
yarn
- Copy the
.env.template
file to.env
:cp .env.template .env
- Fill in the required environment variables in the
.env
file:DB_HOST
,DB_NAME
,DB_USERNAME
,DB_PASSWORD
: PostgreSQL database connection detailsJWT_SECRET
: A random secret for JWT token generationOPENAI_API_KEY
: Your OpenAI API key (see below for instructions)PUBLIC_ENV__GITHUB_CLIENT_ID
,GITHUB_CLIENT_SECRET
: GitHub OAuth App credentials (see below for instructions)
- Go to OpenAI's website and sign up or log in
- Navigate to the API section
- Create a new API key
- Copy the API key and paste it into your
.env
file asOPENAI_API_KEY
- Go to your GitHub account settings
- Navigate to "Developer settings" > "OAuth Apps"
- Click "New OAuth App"
- Fill in the application details (use
http://localhost:3000/github_callback
for the callback URL in development) - After creating the app, you'll see the Client ID and can generate a Client Secret
- Add these to your
.env
file asPUBLIC_ENV__GITHUB_CLIENT_ID
andGITHUB_CLIENT_SECRET
To run the project in development mode:
yarn dev
This will start the server on http://localhost:3000
(or the port specified in your .env file).
To run the project in production mode:
Update your .env file:
NODE_ENV=production
- Build the project:
yarn build
- Start the server:
yarn start
LLM Logger is a tool that helps you keep track of your AI API calls. It's particularly useful when building AI products, as it allows you to monitor how your AI behaves in real-world scenarios.
To use LLM Logger:
- Sign up at https://llmlogger.com/
- Obtain your API key
- Add the API key to your
.env
file asLLM_LOGGER_API_KEY
For more information, visit LLM Logger.
Make sure the PostgreSQL database is running and accessible before starting the application.