This client-side application is developed using React TypeScript and employs the Vite bundler.
- Introduction
- Pre-requisites
- Installation
- Running the Development Server
- Setting Up and Running Locally on Katana
- Building the Project
- Deployment
Before beginning, ensure that you have set up your local environment according to the instructions provided in sdk/README.md. This client utilizes both the Bun package manager and the SDK packages.
For this to work correctly you will need to have katana running with the deployed contracts - this is easy!
Run this at the root of this repo (not in this folder)
- Dependencies: Install all required dependencies by running the command:
bun install
- Development Server: Start the development server with:
bun dev
For local setup and execution on Katana, follow these steps:
- Navigate to Contracts Directory:
cd contracts
- Build Contracts:
sozo build
- Run Katana:
katana --disable-fee
- Apply Migrations:
sozo migrate
- Run Indexer:
torii --world <WORLD ADDRESS>
- Set Environment Variables:
source scripts/env_variables.sh
- Configure Settings:
./scripts/set_config.sh
To build and preview the project, follow these steps:
- Generate GraphQL Code:
bun run codegen
- Build the Project:
bun run build
- Preview the Project:
bun run preview
Certainly! Here's the Deployment section integrated into the document with a revised structure and clarity:
Eternum is designed as a versatile Vite application, enabling deployment on a wide range of platforms. We highly encourage diversity in client deployment, inviting you to take an active role in hosting a client (it can be free!).
One of the easiest and most efficient ways to deploy your Eternum client is through Vercel. Vercel offers a seamless deployment experience with just a few clicks.
To deploy on Vercel, simply use the following link. This will guide you through the process, allowing you to set up a client quickly:
By following this link, you will be redirected to Vercel's platform where you can clone the Eternum repository and initiate your deployment process.