Getting Started - jihadkhawaja/Egroo GitHub Wiki

Getting Started

This guide will help you get Egroo up and running quickly in your environment.

🏃‍♂️ Quick Start

The fastest way to get started with Egroo is using Docker Compose:

Using Docker Compose (Recommended)

  1. Clone the repository:

    git clone https://github.com/jihadkhawaja/Egroo.git
    cd Egroo
    
  2. Set up environment variables:

    # Create environment file
    cp .env.example .env
    
    # Edit the environment variables
    nano .env
    
  3. Start the services:

    cd src
    docker-compose -f docker-compose-egroo.yml up -d
    
  4. Access the application:

🔧 Manual Setup

If you prefer to run Egroo without Docker:

Prerequisites

Database Setup

  1. Install PostgreSQL and create a database:

    CREATE DATABASE egroo;
    CREATE USER egroo_user WITH PASSWORD 'your_password';
    GRANT ALL PRIVILEGES ON DATABASE egroo TO egroo_user;
    
  2. Update connection string in appsettings.json:

    {
      "ConnectionStrings": {
        "DefaultConnection": "Host=localhost;Database=egroo;Username=egroo_user;Password=your_password"
      }
    }
    

Running the Application

  1. Start the API Server:

    cd src/Egroo.Server
    dotnet run
    
  2. Start the Web Client (in a new terminal):

    cd src/Egroo/Egroo
    dotnet run
    

🎯 What's Next?

🚨 Common Issues

  • Database connection errors: Ensure PostgreSQL is running and credentials are correct
  • Port conflicts: Check if ports 5175 (API) and 5174 (Web) are available
  • CORS issues: Verify your allowed origins in configuration

For more troubleshooting help, see the Troubleshooting Guide.