🛠️ PhoenixD Server Workshop

20240819-1430-41.2789126.mp4

This project sets up a PhoenixD server with a backend and frontend, all managed through Docker Compose.

Architecture

  • PhoenixD: A decentralized, secure, and scalable blockchain platform.
  • Backend: A REST API that interacts with the PhoenixD node.
  • Frontend: A web interface that displays the latest blocks and transactions.

Architecture

🚀 Quick Start with Docker Compose

Requirements

  • Docker and Docker Compose installed.

Instructions

  1. Clone the Repository:
git clone --recurse-submodules https://github.com/MiguelMedeiros/workshop-phoenixd.git
cd workshop
  1. Configure Environment Variables:

    2.1 For the backend 0_backend/.env:

    PORT=4269
    PHOENIX_TOKEN= (set this to the http-password from 3_phoenixd/phoenix.conf)
    PHOENIX_HOST=http://phoenixd:9740
    

    2.2 For the frontend 1_frontend/.env:

    NEXT_PUBLIC_BACKEND_URL=https://workshop-backend.miguelmedeiros.dev
    NEXT_PUBLIC_LIMIT_MESSAGES=5
    
  2. Start the Services:

docker-compose up --build
  1. Access the Frontend:

📁 About the 3_phoenixd Directory

  • phoenix.conf: Configuration file. Manually copy the http-password into the backend's .env file as PHOENIX_TOKEN.
  • seed.dat: This is your seed. Be careful with this file! Make sure to back it up.
  • phoenix.mainnet.: This is your database.

📄 License

This project is licensed under the MIT LICENSE.