The web dashboard for the CachyOS repositories provides a user-friendly interface to search and view packages.
-
Clone the repository:
git clone https://github.com/cachyos/public-dashboard.git cd public-dashboard
-
Install the dependencies:
bun --bun install
-
Start the development server:
bun --bun run dev
The application will be available at http://localhost:3000.
To create a production-ready build, run the following command:
bun --bun run build
This will create an optimized build in the .next
directory. To run the production server, use:
bun ./next/standalone/server.js
PS: Check https://nextjs.org/docs/app/api-reference/config/next-config-js/output#automatically-copying-traced-files for any additional steps such as copying static files.
You can also build and run the web dashboard using Docker.
To build the Docker image, run the following command from the root directory:
docker build -t public-repo-dashboard .
An optional --build-arg NEXT_PUBLIC_APP_VERSION=$(git rev-parse --short HEAD)
can be used to include the current Git commit in the dashboard's <meta>
tag during the build.
To run the Docker container, use the following command:
docker run -p 3000:3000 public-repo-dashboard
The application will be available at http://localhost:3000.