Installation

Set up Orivela AI in your environment

Prerequisites

Before installing Orivela AI, ensure you have:

  • Node.js 18+ installed
  • PostgreSQL database (or compatible database)
  • OpenAI API key
  • Twilio account (for voice/SMS)
  • SendGrid account (for email)

Installation Steps

1. Clone the Repository

git clone https://github.com/orivela/ai-platform.git cd ai-platform

2. Install Dependencies

npm install

3. Set Up Environment Variables

Create a .env file with the following variables:

DATABASE_URL="postgresql://user:password@localhost:5432/orivela"
NEXTAUTH_SECRET="your-secret-key"
NEXTAUTH_URL="http://localhost:3000"
OPENAI_API_KEY="sk-your-key"
TWILIO_ACCOUNT_SID="your-sid"
TWILIO_AUTH_TOKEN="your-token"
TWILIO_PHONE_NUMBER="+1234567890"
SENDGRID_API_KEY="SG.your-key"
SENDGRID_FROM_EMAIL="noreply@orivela.ai"

4. Set Up Database

npx prisma generate npx prisma db push npm run db:seed

5. Run Development Server

npm run dev

Visit http://localhost:3000 to access your Orivela AI dashboard.

Note: For production deployment, see our deployment guide or contact support for assistance.