20240819-1430-41.2789126.mp4
This project sets up a PhoenixD server with a backend and frontend, all managed through Docker Compose.
- 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.
- Docker and Docker Compose installed.
- Clone the Repository:
git clone --recurse-submodules https://github.com/MiguelMedeiros/workshop-phoenixd.git
cd workshop
-
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
-
Start the Services:
docker-compose up --build
- Access the Frontend:
- Open your browser and go to http://localhost:3005
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.
This project is licensed under the MIT LICENSE.