Merge branch 'main' into test-dev
This commit is contained in:
17
README.md
17
README.md
@@ -218,20 +218,23 @@ Build and run from source code for development or customization.
|
||||
git clone https://github.com/Wei-Shaw/sub2api.git
|
||||
cd sub2api
|
||||
|
||||
# 2. Build frontend
|
||||
# 2. Install pnpm (if not already installed)
|
||||
npm install -g pnpm
|
||||
|
||||
# 3. Build frontend
|
||||
cd frontend
|
||||
npm install
|
||||
npm run build
|
||||
pnpm install
|
||||
pnpm run build
|
||||
# Output will be in ../backend/internal/web/dist/
|
||||
|
||||
# 3. Build backend with embedded frontend
|
||||
# 4. Build backend with embedded frontend
|
||||
cd ../backend
|
||||
go build -tags embed -o sub2api ./cmd/server
|
||||
|
||||
# 4. Create configuration file
|
||||
# 5. Create configuration file
|
||||
cp ../deploy/config.example.yaml ./config.yaml
|
||||
|
||||
# 5. Edit configuration
|
||||
# 6. Edit configuration
|
||||
nano config.yaml
|
||||
```
|
||||
|
||||
@@ -300,7 +303,7 @@ go run ./cmd/server
|
||||
|
||||
# Frontend (with hot reload)
|
||||
cd frontend
|
||||
npm run dev
|
||||
pnpm run dev
|
||||
```
|
||||
|
||||
#### Code Generation
|
||||
|
||||
Reference in New Issue
Block a user