Giter Site home page Giter Site logo

emmanuel97423 / brackets-viewer.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drarig29/brackets-viewer.js

0.0 0.0 0.0 820 KB

A simple library to display tournament brackets (round-robin, single elimination, double elimination).

Home Page: https://repl.it/@Drarig29/React-and-brackets-viewerjs

License: MIT License

JavaScript 3.87% TypeScript 84.48% SCSS 11.65%

brackets-viewer.js's Introduction

brackets-viewer.js

A simple library to display tournament brackets (round-robin, single elimination, double elimination)

It contains all the logic needed to display tournaments.

npm Downloads jsDelivr Package Quality

Screenshot

How to use?

Import the library from npm using jsDelivr:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/brackets-viewer/dist/brackets-viewer.min.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brackets-viewer/dist/brackets-viewer.min.js"></script>

Or from GitHub with (you can replace @master by any branch name, tag name or commit id):

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Drarig29/brackets-viewer.js@master/dist/brackets-viewer.min.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Drarig29/brackets-viewer.js@master/dist/brackets-viewer.min.js"></script>

Now, you can use it with data generated using brackets-manager just like in the /demo folder.

To quickly test, you can use json-server:

  • Run the npm script named db to serve the static database file /demo/db.json

    npm run db
  • Use directly the db.json file generated by unit tests in the brackets-manager project

    npx json-server --watch path/to/brackets-manager/db.json

How to build?

Install all npm dependencies:

npm install

Build with Webpack:

npm run build

Credits

This library has been created to be used by the Nantarena.

It has been inspired by:

brackets-viewer.js's People

Contributors

drarig29 avatar dependabot[bot] avatar pustur avatar ozgurg 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.