Giter Site home page Giter Site logo

jiayihu / ygo Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 1.7 MB

๐Ÿƒ YuGiOh! PWA built with Web Components and hyperHTML

Home Page: https://ygo.now.sh/

License: MIT License

JavaScript 2.99% CSS 53.32% HTML 0.68% TypeScript 43.01%
hyperhtml shadow-dom custom-elements web-components

ygo's Introduction

YuGiOh!

YuGiOh

A YuGiOh! Progressive Web Application built with Custom Elements and HyperHTML.

The project uses the following technologies:

  • HyperHTML-Element for declarative Custom Elements based on hyperHTML
  • Bulma for some CSS parts in Shadow DOM
  • Workbox for Service Worker and API caching
  • now.sh as static hosting and API proxy

Browser support

Only Chrome 67+ and Safari 11.1 with native Web Components (Custom Elements & Shadow DOM) are fully supported for the time being, although a polyfill is included. Check current browser support.

Also the browser must support ES6, since the bundle is not compiled into ES5. Custom Elements require an extra shim to work with ES5 and it's just not worth it for this project.

Other polyfills like CSS custom properties are not in the interest of this side-project.

Install

Install the dependencies:

npm install

Then start the development server on localhost:3000:

npm start

Building

The build will generate the files in /public folder.

npm run build

CORS Proxing

A Node proxy is deployed on ygo-api.now.sh as proxy to allow CORS requests towards the underlying cards API. It uses cors-anywhere and the source code is in the folder /server/.

Credits

Thanks to pokedex.org, where I got the idea and ispiration of building a similar website for YuGiOh. Of course mine side-project cannot match its architecture and all the cool techniques developed by @nolanlawson.

Thanks also to Yu-Gi-Oh Prices for providing the card APIs.

ygo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.