Local Installation
This section provides step-by-step instructions to install and run LumoKit locally.
🚨 Important: Installation Order
The LumoKit frontend depends on a running LumoKit backend instance. Therefore, you must install and start the backend first before running the frontend.
1. Backend Installation (LumoKit
Backend)
Follow these steps to set up the LumoKit backend:
Clone the Repository:
(The documentation provided does not specify the backend repository URL. Assuming you have access to it, clone it to your local machine.)
Example:
git clone https://github.com/Lumo-Labs-AI/lumo-frontend.git
cd lumokit
Ensure Pre-requisites:
Verify Python 3.11+, PostgreSQL 13+, Makefile, Poetry, Docker, and Docker Compose are installed.
Ensure your PostgreSQL server is running.
Environment Configuration:
Copy the example environment file:
cp .env.example .env
Edit the
.env
file with your specific configurations (Database details, API keys, Solana RPC URL, etc.) as detailed in the "Environment Configuration" page.
Running the Application (using Docker and Make commands):
Ensure Docker is running on your system.
First-time setup (builds containers and applies database migrations):Bash
To build the Docker containers (if not the first time, or after changes):Bash
To start the services:Bash
To check logs:Bash
Convenience command to stop, rebuild, start, and view logs:Bash
Verify Backend Operation:
Once the backend is running (
make up
), you can access the API documentation in your browser:Swagger UI:
http://localhost/docs
ReDoc:
http://localhost/redoc
(Note:
http://localhost
implies the Docker setup maps the service to port 80 on your host, or you have a reverse proxy. Checkdocker-compose.prod.yml
for exact port mappings if needed.)
2. Frontend Installation (lumokit-frontend
)
Once the backend is running and accessible, proceed with the frontend installation:
Clone the Repository:
Bash
Navigate to the Project Directory:
Bash
Install Dependencies:
Using
npm
:BashOr using
yarn
:Bash
Set up Environment Variables:
Rename the
.env.example
file (located in the root of thelumokit-frontend
project) to.env.local
.Update the variables within
.env.local
, ensuringNEXT_PUBLIC_API_URL
points to your running backend (e.g.,http://localhost
if your backend is correctly mapped by Docker). Refer to the "Environment Configuration" page for details on all variables.
Run the Development Server:
Using
npm
:BashOr using
yarn
:Bash
Access LumoKit Frontend:
Open your browser and navigate to
http://localhost:3000
(or the port specified in your terminal, usually 3000 for Next.js applications).
You should now have a locally running instance of LumoKit Frontend connected to your LumoKit Backend!
Last updated