Code Monkey home page Code Monkey logo

2017.mobilization.pl's Introduction

Mobilization 2017 - Website

Hi, in this repository (on master branch) you can find source code of static page generator powered by DocPad for the official website (http://2017.mobilization.pl). The result page is hosted on the gh-pages branch.

"API"

Would you like to integrate your mobile app with our website? Or even create a dedicated app? It's more than welcome! We've prepared some json files you can use to retrieve all data which are being used by the website to make your programs perfectly synchronized!

Links to the files

for Https use raw user content github full path:

As you probably noticed some of the files are empty. If you'd like to start now, please take a look at demo files below. We can guarantee the original files will have exactly the same structure.

How do we know the data has been updated

At some point you'll need to decide if synchronization is needed or not. Also you probably would like to know if the json files has been changed since the last update or not. To solve the issue pretty effectively you can use simple GitHub API call which gives you sha1 checksum for all files in api directory.

curl -i 'https://api.github.com/repos/Mobilization/2017.mobilization.pl/contents/api?ref=gh-pages'
And one more thing you should know about the images

You don't need to download images everytime you sync json files. If a field (i.e. img_url) refers to the same filename you'd already downloaded then you can be sure the image has not been changed. Everytime we update an image its filename is changed as well.

How to install 2017.mobilization.pl locally

Before you start pulling down the repository please ensure you've got Node.js (https://nodejs.org/download/) installed on your computer. The project was tested on Node.js v0.12.4.

Here https://raw.githubusercontent.com/mobilization/2017.mobilization.pl/master/bin/install.sh you can find a simple script to install both src (docpad) & out (html) projects.

You can install this via the command-line with curl.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/mobilization/2017.mobilization.pl/master/bin/install.sh)"

The script will pull the project and put into the following structure:

mobilization.pl/2017.mobilization.pl - for master branch (src project) mobilization.pl/2017.mobilization.pl-gh-pages - for gh-pages branch (out project)

In most of cases you won't need to update 2017.mobilization.pl-gh-pages, docpad will do it for you.

How to run the page locally

cd mobilization.pl/2017.mobilization.pl
./run.sh

How to push changes to gh-pages branch (production)

In mobilization.pl/2017.mobilization.pl/bin you will find few scripts simplifying publishing process. Please run the scripts via symbolic links in mobilization.pl/2017.mobilization.pl.

  • ./clean.sh - Clean up the out folder and sync with remote repository.
  • ./generate.sh - Re-generate the out files.
  • ./publish.sh - Commit the out files and push to remote.

2017.mobilization.pl's People

Contributors

cezary-draus avatar marekdef avatar cezarydraus-tomtom avatar gelemias avatar zeriver avatar

Watchers

Tomasz Gebarowski 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.