Installation
Local deployment quickstart with docker-compose
We make sure that the app is easy to deploy locally. To do so, we have created a docker-compose file that will allow you to deploy the app locally with a single command. follow these steps:
- Make sure you have docker and docker-compose installed on your computer.
- Clone the app's repository from GitHub:
git clone https://github.com/ImbueNetwork/imbue-frontend.git
. - Navigate to the app's directory:
cd imbue-frontend
. - Run the docker-compose command:
docker-compose up -d
. - We are using make file for quick setup of db and migrations.
- Run the make command:
make db_up
andmake seed
. It will create the database and run the migrations to populate the table with some dummy data. - Install the app's dependencies:
yarn
.
Configuration
The app's configuration is stored in environment variables. The following variables are available:
PORT
: The port number to use for the app's server.IMBUE_NETWORK_WEBSOCK_ADDR
: The address of the Imbue Network websocket endpoint.RELAY_CHAIN_WEBSOCK_ADDR
: The address of the Polkadot websocket endpoint.DB_HOST
: The host address of the database.DB_PORT
: The port number of the database.DB_USER
: The username of the database.DB_PASSWORD
: The password of the database.DB_NAME
: The name of the database.