/Codingame-Badge

A webpage for getting info from CG and create badges

Primary LanguageHTML

Update Note - 2021-06-08

The DEMO website for Codingame-Badge is no longer working because the cross origin server is now limited from public usage.

The POST API from Codingame is still solid at 2021-06-08.

One will need to deploy their own cross origin server and modify the server address in the JS file.

This repo will no longer be maintained.


Codingame-Badge

sample

https://wei-1.github.io/Codingame-Badge/

Usage

Login to Codingame and get the Codingame ID in the URL of ones profile page.

https://www.codingame.com/profile/

Put the Codingame ID in the input box in the web page, and click submit.

Wait for some time and see the badge changing based on ones Codingame rank.

Example

For Wei-1, one will be able to see his profile at

https://www.codingame.com/profile/3f4adfba53d1ae216fb40f9c51b72c843953371

Therefore, Wei-1's Codingame ID is 3f4adfba53d1ae216fb40f9c51b72c843953371.

Notes

This project aims to create badges for Codingame Rank.

One difficulty while testing is that CG's api does not allow cross origin.

Therefore, we use the open demo server from cors-anywhere.

https://cors-anywhere.herokuapp.com/

Refs

https://github.com/Orabig/codingame-api-rfc

https://github.com/Rob--W/cors-anywhere

https://gist.github.com/soundstorm/266148cd9dbbdcf5cbc18ce26d75d3ea