Files
dagu/ui
Yota Hamada e78459b13d Reorganize type declaration (#605)
* Reorganize type declaration

* Refactoring old code

* Rename types

* Fix tests

* Move files

* Rename unexported fields

* Refactoring dependencies

* Refactoring dependencies

* Refactor tests

* Refactoring dag package

* Simplify type naming

* Refactor mailer package

* Split file

* Rename package

* Refactor frontend server

* Refactor frontend server

* Fix frontend bug

* Update document

* Refactor frontend code

* Refactor frontend code

* Refactor frontend code

* Rename target name

* Update makefile

* Update contribution guide

* Move frontend package

* Move scheduler package

* Move scheduler service package

* Update make run command

* Move entry-reader pckage

* Refactor scheduler package

* Refactor scheduler package

* Refactor scheduler package

* Refactor scheduler package

* Update scheduler tests

* Update scheduler tests

* Remove unused function

* Update Makefile

* Update Makefile

* Move dag status type declaration

* Refactor dependency to config

* Refactor agent contstructor

* Refactor

* move grep package

* Rename package for tools.go

* Fix OpenAPI spec lint errors

* Refactor tests

* Fix lint error

* Move variable location
2024-07-06 16:54:31 +09:00
..
2024-01-21 14:23:44 +09:00
2024-07-06 16:54:31 +09:00
2023-08-11 21:35:01 +09:00
2023-08-11 22:17:02 +09:00
2023-08-11 21:35:01 +09:00

dagu UI

Development Instructions

1. Starting the Backend Server

The Dagu UI relies on a backend server that provides the necessary data for the UI to function properly. To start the backend server, navigate to the project root directory and execute the following command:

git clone git@github.com:yohamta/dagu.git
cd dagu
make server

This command will start the backend server at 127.0.0.1:8080 by default. If you need to use a different address or port, you can modify the appropriate settings in the backend configuration file.

2. Starting the Webpack Dev Server

Once the backend server is up and running, you can start the Webpack dev server to serve the frontend assets. To do this, navigate to the ui/ directory and execute the following commands:

cd ui/
yarn install
yarn start

This command will start the Webpack dev server at 127.0.0.1:8081. You can access the UI by opening your web browser and navigating to http://localhost:8081.

3. Building the Bundle.js File

If you need to build the bundle.js file, which contains all the necessary frontend assets, you can do so using the following command:

cd dagu
make build-ui

This command will build the bundle.js file and copy it to dagu/frontend/assets/js/bundle.js. This is necessary for the Go backend to include the JavaScript within the binary.