A frontend for the cattle drive protocol ...
- TypeScript 89.7%
- JavaScript 4.9%
- CSS 2.8%
- HTML 2.2%
- Shell 0.4%
console
Building
When building there are two relevant configuration
values VITE_BASE_URL and --base. Then one can run
this via
VITE_BASE_URL=https://cattle-grid.example/fe npm run build -- --base="/console"
this means
- the resulting
index.htmlwill be served from the subdirectory/consoleof your server. - The Cattle Drive API is available at
https://cattle-grid.example/fe.
Development
Install dependencies (node_modules folder)
npm install
Run tests
npm run test
Local development with cattle_grid
Start cattle_grid in the fediverse-pasture network. Start
the development container
docker compose up
The server is now available at http://localhost:3013/.
Credentials are as defined in your config/testing.toml in
your cattle_grid configuration.