Skip to content

chippy-kennedy/open-data.nyc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 

Repository files navigation

Documentation for Open-Data.nyc

Full project documentation for open-data.nyc, the informational website for NYC Mayor's Office of Data Analytics' (MODA) annual Open Data Week. It was built using the Roots ecosystem, which consists of the Trellis server environment automation, the Bedrock WordPress boilderplate, and the Sage starter theme.

Product Owners

Lead Developer

Lead Designer

Development Operations

Getting Started

Development and deployment rely on Trellis, a close emulation of the server environment

System Prerequisites

  • PHP >= 5.6
  • Composer
  • Virtualbox >= 4.3.10
  • Vagrant >= 2.0.1

Installing Prerequisites

Every Collectively WordPress project sits on the Trellis-Bedrock-Sage-Themans stack.

  • Trellis: Local development envitonment via Vagrant and VirtualBox
  • Bedrock: 12-Factor WordPress stack with built in development tools
  • Sage: Roots-based WordPress starter theme
  • Themans: Collectively-built starter theme that extends Sage
  • Digital Ocean: Collectively's recommended production server environment

Installing Trellis

Configure your WordPress sites in group_vars/development/wordpress_sites.yml and in group_vars/development/vault.yml

Running Project Locally

Developing the application requires running a virtual environment on your local machine. To run locally:

From the trellis directory, run vagrant up

From the site/web/app/themes/open-data-week-theme directory, run: npm install -g npm@latest npm install -g gulp bower npm install && bower install `gulp && gulp watch``

Read the Trellis local development docs for more information.

Provisioning Server

For remote servers, installing Ansible locally is an additional requirement. See the docs for more information.

A base Ubuntu 16.04 server is required for setting up remote servers. OS X users must have passlib installed.

  1. Configure your WordPress sites in group_vars/<environment>/wordpress_sites.yml and in group_vars/<environment>/vault.yml (see the Vault docs for how to encrypt files containing passwords)
  2. Add your server IP/hostnames to hosts/<environment>
  3. Specify public SSH keys for users in group_vars/all/users.yml (see the SSH Keys docs)
  4. Run ansible-playbook server.yml -e env=<environment> to provision the server

Read the Treliis remote server docs for more information.

Deployment

  1. Add the repo (Git URL) of your Bedrock WordPress project in the corresponding group_vars//wordpress_sites.yml file
  2. Set the branch you want to deploy
  3. Run ./bin/deploy.sh
  4. To rollback a deploy, run ansible-playbook rollback.yml -e "site= env="

Read the Trellis deploys docs for more information.

About

NYC Open Data Week Website - 2018 [Wordpress, Trellis]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •