Code Monkey home page Code Monkey logo

sitesforbernie's Introduction

SandersForPresident WordPress Theme

build status

This is a reusable theme for Bernie Sanders campaign microsites.

Installing

Clone the git repo [email protected]:SandersForPresident/Wordpress.git and then rename the directory to the name of your theme or website.

Using Vagrant for local development

Vagrant will create a virtual machine for local development. You will need to install three packages:

After setting up these three packages, you will be able to run the following command locally to create your own virutal server:

vagrant up

After it downloads a linux VM and configures it, you should be able to point your browser at http://192.168.33.10/ and get a local copy of the theme running. The WordPress admin will be setup with a username of admin and a password of secret.

If you want to look around on the server you can vagrant ssh and to shut off the server when you aren't using it you can vagrant halt. If you want to destroy the VM entirey (start fresh, wipe database, etc) you can vagrant destroy.

You can customize the installation a bit by looking at the ansible variables

Theme Development

SandersForPresident uses gulp as a build system and bower as a front end package manager.

Install gulp and bower

Building the theme requires node.js. We recommend you update to the latest version of npm: npm install -g npm@latest.

From the command line:

  1. Install gulp and bower globally with npm install -g gulp bower
  2. Run npm install in the theme directory
  3. Run bower install

You now have all the necessary dependencies to run the build process.

Building the project

The following gulp tasks are available:

  • gulp build -- Build the assets
  • gulp lint -- Validate the JS
  • gulp watch -- Rebuild the assets when the source files change

Contributing

Contributions are encouraged and welcome by everyone! We have contributing guidelines to help get you started.

sitesforbernie's People

Contributors

atticoos avatar zackkrida avatar jasonbraun avatar gnarf avatar valid avatar lady3bean avatar jlegrone avatar

Watchers

 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.