Add the following code to your website to embed (adjusting width and height as necessary):
<iframe src="https://fashionchecker.org/embed.html" style="width: 100%; height: 600px"></iframe>
Note: supported languages can be embedded by adding the language prefix to the source url, eg https://fashionchecker.org/de/embed.html
.
The site is developed with Middleman. It depends on Ruby and the RubyGems package manager. If you don't have that you can follow these instructions.
git clone https://github.com/wikirate/fashionchecker
cd fashionchecker
bundle install
bundle exec middleman build
bundle exec middleman server
The command returns a url where you can access the site. Middleman automatically picks up source changes and refreshes the site in the browser.
bundle exec cap production deploy
To improve performance, responses to default requests are stored in a local file, and the file is updated daily via a cron job.
The script to update cached data is in script/update_cached_data.
This should only be necessary if countries are added or renamed on WikiRate.org
Just copy result of https://wikirate.org/:region/countries.json