Getting started
This guide will help you set up Concordia on your local machine for development.Prerequisites
Before you begin, ensure you have:- Node.js 18+ installed
- PostgreSQL 14+ running locally or access to a PostgreSQL database
- A package manager (npm, pnpm, or yarn)
Installation
Configure environment variables
Create a Update the
.env file in the root directory by copying the example file:.env file with your configuration:Generate a secure
BETTER_AUTH_SECRET using: openssl rand -base64 32Set up the database
Create your PostgreSQL database and run migrations:The migrations will create all necessary tables including:
- Authentication tables (user, session, account, verification)
- Profile and role management
- Blog system (posts, authors, categories, translations)
- Organization management
- Audit logging
Available scripts
Concordia includes several useful npm scripts for development:Development
Database management
Testing
Utilities
Verify installation
After setup, verify everything is working:- Check the homepage: Navigate to
http://localhost:4321and verify the site loads - Test authentication: Try signing up at
http://localhost:4321/en/auth/sign-up - Check database: Verify tables were created successfully:
- Run tests: Execute the test suite to ensure everything passes:
Multi-language support
Concordia supports four languages out of the box:- French (fr) - Default language
- English (en)
- Arabic (ar) - Right-to-left (RTL) support
- Spanish (es)
http://localhost:4321/fr/(French)http://localhost:4321/en/(English)http://localhost:4321/ar/(Arabic - RTL)http://localhost:4321/es/(Spanish)
Project structure
Next steps
Explore features
Learn about all the platform capabilities and how they work together.
Database schema
Understand the database structure and relationships.
Need help? Check the comprehensive test suite in
tests/ for examples of how different features work.