Getting Started with kometa
This guide will walk you through the process of setting up kometa on your system. We’ll cover both Docker and manual installation methods.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have the following:
- A ComicVine account and API key
- PostgreSQL database (version 12 or higher)
- Node.js 18+ (for manual installation)
- Docker and Docker Compose (for containerized setup)
Obtaining a ComicVine API Key
Section titled “Obtaining a ComicVine API Key”- Create an account on ComicVine
- Visit the API page
- Generate your API key
- Keep this key secure - you’ll need it for kometa configuration
Environment Configuration
Section titled “Environment Configuration”Create a .env file in your project root with the following variables:
# RequiredCOMIC_VINE_API_KEY=your_comicvine_api_keyDATABASE_URL=your_database_urlJWT_SECRET=your_jwt_secretNEXT_PUBLIC_APP_URL=your_app_url
# Optional - For Push NotificationsNEXT_PUBLIC_VAPID_PUBLIC_KEY=your_vapid_public_keyVAPID_PRIVATE_KEY=your_vapid_private_keyVAPID_EMAIL=your_vapid_emailGenerating Required Secrets
Section titled “Generating Required Secrets”JWT Secret
Section titled “JWT Secret”Generate a secure JWT secret using:
openssl rand -hex 32VAPID Keys (Optional)
Section titled “VAPID Keys (Optional)”If you want to enable push notifications:
- Install web-push:
npm install -g web-push - Generate keys:
web-push generate-vapid-keys - Add the generated keys to your
.envfile
Installation Methods
Section titled “Installation Methods”Docker Installation
Section titled “Docker Installation”- Clone the repository:
git clone https://github.com/daviddhdev/kometa.gitcd kometa-
Create your
.envfile as described above -
Build and start the containers:
docker-compose builddocker-compose up -dThe application will be available at http://localhost:3000 by default.
Manual Installation
Section titled “Manual Installation”- Clone the repository:
git clone https://github.com/daviddhdev/kometa.gitcd kometa- Install dependencies:
npm install-
Create your
.envfile as described above -
Start the development server:
npm run devInitial Setup
Section titled “Initial Setup”- Access the application at your configured URL
- Create an admin account
- Configure your comic library location
- Start importing your comics!
Troubleshooting
Section titled “Troubleshooting”If you encounter any issues during setup:
- Check the application logs
- Verify all environment variables are correctly set
- Ensure your database is accessible
Support
Section titled “Support”Need help? Check out our: