Giter Site home page Giter Site logo

whitewaterwriters-site's Introduction

Day Of Code website

Develop

This app was built with Jekyll version 4.0.0

Install the dependencies with Bundler:

$ bundle install

This app uses Ruby 2.5.5 features. If you manage Ruby versions with RVM, run:

$ rvm use ruby-2.5.5

Run jekyll commands through Bundler to ensure you're using the right versions:

$ bundle exec jekyll serve

Data

From Consonance's API:

  • Add and remove products to be included on the site, on Consonance:

https://web.consonance.com/shops/:id/products

You need to authenticate to get data from Consonance. cd into the publisher-website directory. Using your API key and shop ID from Consonance, run:

API_KEY=1234567890 SHOP_ID=123 ruby lib/seed.rb --adaptor consonance

From ONIX files:

A valid ONIX 3.0 file should be present in the data directory, named onix.xml. It should include a xmlns namespace:

http://ns.editeur.org/onix/3.0/reference

The adaptor code uses a fuzzy match to process files by publisher name. To process the records for a publisher called snowbooks, run:

ruby lib/seed.rb --adaptor onix --publisher snowbooks

For more information:

ruby lib/seed.rb --help

Build and run

jekyll build --watch

To run the site locally:

jekyll serve

View the site locally:

localhost:4000

whitewaterwriters-site's People

Contributors

joereddington avatar emmab avatar slimdave avatar nickbarreto avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Forkers

maxlaumeister

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.