hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
68 stars 44 forks source link

Coverage Status GitHub Actions Workflow Status GitHub repo size

Setup

Prerequisites

Steps

  1. Clone the repository:
    git clone https://github.com/hicommonwealth/commonwealth.git
  2. Navigate to the project directory:
    cd commonwealth
  3. Install dependencies:
    pnpm install
  4. Set up environment variables:
    cp .env.example .env
  5. Run external services (postgresql, redis, rabbitmq):
    docker-compose up -d
  6. Run the database migrations:
    pnpm migrate-db
  7. Start the server:
    pnpm run start

The API server runs on http://localhost:3000/ and you can test it by making a request to http://localhost:3000/api/health. It should respond with

{
  "status": "ok"
}

The client is served from http://localhost:8080/.

Side Notes

Some features of the application require additional API keys. While the app will still function without them, certain functionalities may be limited.

Required for openAI image generation:

Required for chain features on EVM chains (groups, stake, contests):

Ensure these keys are set up in your environment variables to fully utilize all features of the application.

Scripts