Git Product home page Git Product logo

cr-card-maker's Introduction

Clash Royale Card Maker

The second version of the Clash Royale Card Maker, completely rewritten from scratch.

Why creating a new version from scratch?

Even if it has been updated and bugfixed later on, the original Card Maker was written in just three days. No build tools were used, everything was handwritten using Sublime Text 3. For this reason, it was unoptimized, badly organized and inflexible.

Almost an year later, I felt it was time to finally give the Card Maker a proper organization. After many attempts on building a scalable, optimized website, I finally came up with this. The main points of the CRCM 2.0 are:

  • Built using WebComponents to be as much modular as possible. Adding new features is incredibly easy!
  • Card generation is much closer to the original Clash Royale cards. Most of the text on the card auto fits and you can also add newlines to the card description and edit and rearrange the card properties (finally!)
  • The card is directly editable. No side form or anything else. Just tap what you want to edit an do whatever you want
  • Polymer CLI to test and build the project
  • Bower to manage the project dependencies
  • Less external libraries, much lighter and faster
  • A more minimal and appealing UI
  • Built as a Progressive Web App: installs a service worker that caches all the assets, so it is even faster after the first time you use it (and it can also be installed as a normal app!)
  • Open-source!

Note: I know Bower is deprecated, but for now the most stable version of Polymer and all of its dependencies are only available there. I will switch to yarn as soon as Polymer 3 comes out.

Run it locally and/or contribute

Install the latest version of bower:

$ yarn global add bower
# or
$ npm i -g bower

Install the Polymer CLI:

$ yarn global add polymer-cli
# or
$ npm i -g polymer-cli

Clone the repository:

$ git clone https://github.com/Dabolus/cr-card-maker.git && cd cr-card-maker

Finally, install the dependencies using Bower:

$ bower install

Now everything is set up and ready! These are the available commands:

$ polymer serve     # Serves the CRCM on localhost:8081
$ polymer build     # Builds the CRCM and copies the built files to the 'build/' folder.

The build command will create three different builds:

  • es5-bundled: The JS code is transpiled to ES5 and the dependencies are bundled
  • es6-bundled: The JS code is left as-is (ES6) and the dependencies are bundled
  • es6-unbundled: The JS code is left as-is (ES6) and the dependencies are NOT bundled

Optional: if you contribute to this project and you want to be credited:

  1. Edit package.json by adding yourself into the contributors field, e.g.
    {
      "contributors": [{
        "name": "Your name",
        "email": "[email protected]",
        "url": "your-website.example.com"
      }]
    }
  2. Edit humans.txt by adding yourself into the THANKS field, e.g.
    /* THANKS */
        Your role: Your name
        Site: your-website.example.com
        Contact: your.email [at] example.com
        From: Your country
    

Enjoy!

cr-card-maker's People

Contributors

dabolus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cr-card-maker's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

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.