Start local development quickly
Start local development quickly
Start local development quickly
This guide will help you quickly get up and running a Lemon project in a local environment.
1. Environmental requirements
Before you begin, make sure that your system meets the following requirements:
Operating System:
Linux
MacOS
Windows 上的 WSL (Ubuntu >= 22.04)
Docker: Make sure Docker is installed. If you are a macOS user, be sure to allow the default Docker socket in Docker's advanced settings.
Python: Version3.12.
Node.js: version>= 22.x.
Please continue inmake initCommand, verify that all of these dependencies are installed correctly.
2. Build and environment settings
First, you need to build the project and set up the development environment. This step ensures that Lemon is ready to run on your system:
make init
In addition, local development also needs to download the latest sandbox image:
Dockerpull hexdo lemonai/lemon-runtime Sandbox: latest
3. Run the application
After the project is built, you can run the Lemon application in two ways:
Option A: Run the full application
This command starts both the back-end and front-end servers, allowing you to interact with the full Lemon application:
make run
Option B: Start the servers separately
If you want more flexible control, you can start the front-end or back-end servers separately:
Start the back-end server: If you want to focus on back-end related tasks or configurations, you can start the back-end server separately:
make start-backend
Start the front-end server: Similarly, you can start the front-end server separately to handle front-end components or interface enhancements:
make start-frontend