GithubHelp home page GithubHelp logo

tilmann-bartsch / marigold Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.45 MB

Marigold is a tiny server used to examine and compare the contents of hierarchical structured files.

License: MIT License

Python 28.44% CSS 5.99% HTML 1.19% Nix 13.56% JavaScript 50.82%

marigold's Introduction

Marigold

PyPI pyversions License: MIT Commits

Marigold is a tiny server used to examine and compare the contents of hierarchical structured files.

Installation

  • using docker image: Pull docker image from hub.docker.com and run it for the files located in the folder content.
    docker pull tbartsch/marigold
    docker run -it \
        -p 8080:8080 \
        --mount type=bind,source="$(pwd)"/content,target=/marigold/content \
        tbartsch/marigold:latest
  • using python venv:
    (cd frontend; yarn build) 
    python -m venv venv
    source venv/bin/activate
    pip install .
    marigold --directory example/marigold
  • using nix:
    nix-build nix
    result/bin/marigold --directory example/marigold

Development

  • using python venv:
    # Install
    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    (cd frontend; yarn install)
    # Run
    python marigold/app.py --directory example/marigold --only-backend & \
      (cd frontend; yarn start)
  • using nix:
    # Install
    nix-shell nix/shell.nix
    # Run
    python marigold/app.py --directory example/marigold --only-backend & \
      (cd frontend; yarn start)

Nix Packaging Notes

Create yarn.nix-file

cd frontend
nix-shell -p yarn yarn2nix
yarn2nix > yarn.nix

Docker container

Build and run docker image using nix dockerTools.

docker load < $(nix-build nix/docker.nix) || exit
docker run -it \
    -p 8080:8080 \
    --mount type=bind,source="$(pwd)"/example/marigold,target=/content \
    marigold:nightly

Icons

This project uses icons of remixicon project.

Changelog

This library adheres to a semantic versioning scheme. See CHANGELOG.md for the list of changes.

Contributions

Contributions are very welcome! Feel free to report bugs or suggest new features using GitHub issues and/or pull requests.

License

Distributed under MIT License.

marigold's People

Contributors

tebartsch avatar

Watchers

 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.