A comprehensive web-based AI LaTeX Generator that simplifies document creation through advanced AI integrations and intelligent document generation tools.
- AI-powered LaTeX generation from simple text descriptions
- Multiple AI provider support (OpenAI, Anthropic, Groq)
- PDF preview and download
- User authentication and subscription tiers
- Collaborative editing functionality
- User-friendly tag system for non-LaTeX users
- React.js frontend with TypeScript
- Express.js backend
- PostgreSQL database with Drizzle ORM
- PDF.js for document rendering
- Multi-AI provider integration
- Tectonic for LaTeX compilation
- GitHub account (for Railway login)
- Railway account
- API keys for AI providers (OpenAI, Anthropic, Groq)
-
Sign up for Railway
- Go to Railway.app
- Sign up with GitHub
-
Create a New Project
- Click "New Project"
- Select "Deploy from GitHub repo"
- Choose this repository
-
Set Up PostgreSQL Database
- In your project, click "New Service"
- Select "Database" → "PostgreSQL"
- Wait for the database to be provisioned
-
Set Environment Variables
Click on your web service, go to "Variables" tab, and add:
DATABASE_URL
(Copy this from the PostgreSQL service's "Connect" tab)SESSION_SECRET
(A random string for securing sessions)OPENAI_API_KEY
(Your OpenAI API key)ANTHROPIC_API_KEY
(Your Anthropic API key)GROQ_API_KEY
(Your Groq API key)- Any other API keys needed for service integrations
-
Deploy
- Railway will automatically deploy your application
- After deployment, click on "Generate Domain" to get a public URL
-
Run Database Migrations
- Go to your project settings
- Add a one-time job with the command:
npm run db:push
- This will set up your database schema
- Clone this repository
- Install dependencies:
npm install
- Create a
.env
file with the required environment variables - Run the application:
npm run dev