Zigistry
  • Packages
  • Programs
  • Statistics
  • Apps
  • API
  • About
  • Help
  • Star
© 2024Rohan Vashisht
  • About
  • Help
  • GitHub
misshodfcm

iamyaash/fcm

GPL-3.0

Fedora Container Manager

1100
7
container,dashboard,docker,fedora,lighweight,podman,zig
 
View program on GitHub

fcm

Fedora Container Manager

  1. Start the Podman API Server:
podman system service tcp:localhost:8080 --time=0 &

This starts the API service in background(&) under the port 8080

  • In order to communicate with Podman, we need use the Podman's RESTful API to access the container informations.
  • The above command starts the server, which enables to communicate with Podman using http request to send & receive data.
  • This is the first and foremost step complete for API communications.
  1. Send HTTP Request using Ziglang

Workflow

Back-end

  1. When the user clicks any of the sections, JavaScript sends a GET request to the Zig application.
  2. Zig receives the HTTP request from JavaScript and send a GET Request to the Podman API endpoint.
  3. Fetch the JSON data from Podman and sends return it directly to the JavaScript front-end without storing it.

Front-end