GithubHelp home page GithubHelp logo

toby / soft-serve_monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arkaeriit/soft-serve_monitor

0.0 0.0 0.0 18 KB

A web interface for a soft serve Git server.

License: BSD 3-Clause "New" or "Revised" License

Python 56.97% HTML 28.95% CSS 14.08%

soft-serve_monitor's Introduction

Soft Serve monitor

Soft Sevre is a very nice git server. It offers a really nice TUI to browse the repositories on the server. Unfortunately, it does not offers a web interface. Here, I want to try to make a tiny web interface to present the git server and list the repositories there.

I use this to give a web interface to my personal Git server.

What is on the web interface

The web interface offers a home page that list all the repositories in the server. The name of each repository is a link to it's page.

Home page

In the page of each repository, there is the command to clone the repository and a render of the README file.

A repository page

Configuration

To tell the web server what files to monitor and how to login to the Soft Serve server, a JSON configuration file is needed. The JSON file needs the following fields:

Field name Description Example
ss_host The host name of URL of the Soft Serve server. "git.bobignou.red"
ss_port The port used by the Soft Serve server. 23231
repos_path The path to the folder where the git repositories are located "/srv/soft-serve/.repos"
monitor_port Port uses by the Flask web server. 8080
monitor_name A name to display to describe the server. Bobignou

This JSON file should be given as argument when running the Flask server executable.

An example is given as config.json in this repository.

Running the server

This server depends on the following python libraries:

  • Flask
  • markdown

You need to install them before being able to run it.

Running this server is as easy as running any other Flask server. I use the following systemd service to run it on my personal server.

[Unit]
Description=A soft-serve web interface
After=network.target

[Service]
Type=simple
# Another Type: forking
User=root
Group=root
WorkingDirectory=/srv/data/soft-serve
ExecStart=/srv/soft-serve/soft-serve_monitor/soft-serve_monitor.py /srv/soft-serve/soft-serve_monitor/config.json
Restart=on-failure

[Install]
WantedBy=multi-user.target

soft-serve_monitor's People

Contributors

arkaeriit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.