Skip to content

ITP-xStory/website

Repository files navigation

xStory website

Build Status PRs Welcome License: MIT

cover

  1. What is XStory?
  2. Getting started
  3. Contributing

What is XStory?

ITP xStory is an organization dedicated to support, to promote and to publish innovative creative projects and tools in the field of digital storytelling and digital art, by ITP studets and alumni. The organization vision is to reach as many digital creators as possible, to inspire them with cutting edge ideas and creation tools, and to build a community of explorers around these ideas. The organization is sponsored and supported by NYU ITP.

Getting started

Setting up the enviorment:

  • Install node by downloading the right OS installer from here
  • On macOS, install Homebrew from here
  • Once you have brew installed, install yarn by running
brew install yarn

Finally install gatsby globally by running

yarn global add gatsby

Setting up the website:

  • Clone the repository to your computer
git clone https://github.com/ITP-Xstory/website.git
  • Enter the repository folder and install dependencies
cd website && yarn install
  • Finally run the development server by running
yarn run develop

Contributing

Adding a project:

The projects are automaticly created from markdown files stores in src/pages/projects. The project markdown format is:

---
path: '/awesomeproject'
date: '2018-05-23T12:34:00+00:00'
title: "Awesome Project"
tags: ['Awesome', "ML", "Experiment", "Immersive"]
thumbnail: 'https://cdn.awesomene.ss/awesomeproject.gif'
excerpt: "The tagline to be shown under the project in the front page"
---
The project description for the generated project page

To add a new project simply create a new projectname.md file in the src/pages/projects/ folder in the mentioned format, the rest is history.

Deploying the website:

The master branch of the repository uses TravisCI to test and deploy the website to the gh-pages branch (which is linked to the domain) on every commit to master. Please DO NOT commit directly to master, but commit to a branch and Pull Request to master once you have finished updating the website, we trust you 🤝.

Build commands:

  • yarn run develop - runs a development server on localhost:8000
  • yarn run format - runs prettier to format the code
  • yarn run build - builds a static version of the website to public/ which doesn't get commited
  • yarn run deploy - builds and deploys the static website the gh-pages branch. It should not be called by used, because TravisCI calls it on every commit to master