This guide will walk you through installing Concordia on your local development environment.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ishaq74/concordia/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 18.x or higher
PostgreSQL
Version 14.x or higher for local development
Package Manager
pnpm (recommended), npm, or yarn
Git
For cloning the repository
Installation Steps
Install Dependencies
Install the project dependencies using your preferred package manager:
pnpm is recommended for faster installation and better disk space efficiency.
Set Up Environment Variables
Create a Configure the essential variables (see Environment Variables for details):
.env file in the root directory by copying the example file:Set Up the Database
Run database migrations to set up the schema:Optionally, seed the database with sample data:
Start the Development Server
Launch the Astro development server:The application will be available at
http://localhost:4321Key Dependencies
Concordia is built with the following core technologies:Astro Framework
Astro Framework
- astro
^5.18.0- Static site generator with SSR support - @astrojs/mdx
^4.3.13- MDX support for content - @astrojs/check
^0.9.6- TypeScript checking
Deployment Adapters
Deployment Adapters
- @astrojs/vercel
^9.0.4- Vercel deployment adapter - @astrojs/node
^9.5.4- Node.js standalone server adapter
Database & ORM
Database & ORM
- drizzle-orm
^0.45.1- Type-safe database ORM - pg
^8.18.0- PostgreSQL client - drizzle-kit
^0.31.9- Database migrations tool
Authentication
Authentication
- better-auth
^1.4.18- Modern authentication library - jose
^6.1.3- JWT handling
Email & Notifications
Email & Notifications
- nodemailer
^7.0.13- Email sending
Available Scripts
Once installed, you can use these npm scripts:Development
Database Management
Testing
Troubleshooting
Database Connection Errors
Database Connection Errors
Ensure PostgreSQL is running and the connection string in This will test your database connection and report any issues.
.env is correct:Port Already in Use
Port Already in Use
If port 4321 is already in use, you can specify a different port:
Module Not Found Errors
Module Not Found Errors
Try clearing the node_modules and reinstalling:
SMTP Configuration Issues
SMTP Configuration Issues
If you’re having email issues, test your SMTP configuration:
Next Steps
Configuration
Configure Astro adapters and i18n settings
Environment Variables
Set up all required environment variables