Get VideoGen Messenger running in 5 minutes!
- Node.js 18+ installed
- Docker Desktop running
- Git installed
git clone https://github.com/yourusername/videogen-messenger.git
cd videogen-messenger/backend
npm install# Start PostgreSQL, Redis, and Elasticsearch
docker-compose -f docker-compose.dev.yml up -d
# Wait 30 seconds for services to start
sleep 30# Copy environment template
cp .env.example .env
# Edit .env and add your API keys (optional for local dev)
# GOOGLE_VEO_API_KEY=your_key_here
# RUNWAY_API_KEY=your_key_here
# MINIMAX_API_KEY=your_key_here# Run migrations
npm run migrate
# Seed with test data (optional)
npm run db:seed# Start development server
npm run devServer will start at http://localhost:3000
# Health check
curl http://localhost:3000/health
# Should return: {"status":"ok"}- Read the docs: Check out DEVELOPMENT.md
- Test the API: Import Postman collection from
docs/postman/ - Run tests:
npm test - Start building: Check API.md for endpoints
# 1. Register a user
curl -X POST http://localhost:3000/api/v1/auth/register \
-H 'Content-Type: application/json' \
-d '{
"email": "test@example.com",
"password": "Test123!@#",
"name": "Test User"
}'
# 2. Login (copy the token from response)
curl -X POST http://localhost:3000/api/v1/auth/login \
-H 'Content-Type: application/json' \
-d '{
"email": "test@example.com",
"password": "Test123!@#"
}'
# 3. Generate video (replace YOUR_TOKEN)
curl -X POST http://localhost:3000/api/v1/generate \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-d '{
"prompt": "A beautiful sunset over mountains",
"quality": "hd",
"duration": 5
}'# Find and kill process
lsof -i :3000
kill -9 <PID># Restart Docker services
docker-compose -f docker-compose.dev.yml restart# Clean install
rm -rf node_modules package-lock.json
npm install- Documentation: docs/
- Issues: GitHub Issues
- Troubleshooting: TROUBLESHOOTING.md