Giter Site home page Giter Site logo

nopdotcom / kickster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nielsenramon/kickster

0.0 1.0 0.0 2.08 MB

Worry-free deploying to GitHub Pages using Jekyll

Home Page: http://kickster.nielsenramon.com

Ruby 33.21% Shell 34.82% HTML 31.58% JavaScript 0.38%

kickster's Introduction

Kickster

Join the chat at https://gitter.im/nielsenramon/kickster

Kickster provides a basic Jekyll project setup packed with web best practises and useful optimization tools increasing your overall project quality. Kickster ships with automated and worry-free deployment scripts for GitHub Pages.

Used tools:

Installation

If you haven't installed the following tools then go ahead and do so (make sure you have Homebrew installed):

brew install ruby
brew install npm

On windows, install Ruby and Node with the installers found here:

Install the gem:

gem install kickster

Execute gem and scaffold Kickster files:

kickster new site_name

Setup your environment:

cd site_name
bin/setup

You can push your project to any branch except gh-pages. For sitename.github.io repo users make sure to use another branch than master.

Development

Run Jekyll:

bundle exec jekyll serve

If you do not want the Kickster setup but just the deploy scripts then copy them from the bin folder.

Deploy to GitHub Pages

Run this in the root project folder in your console:

bin/deploy

Don't forget to enable your repository on Circle CI and update the _config.yml file with your url!

Automated deployment with Circle CI

Automated deployment is by default not included in your Kickster generated Jekyll project. Please follow the steps below to include automated deployment.

Note that changes will only deploy when your code is merged into master.

1. Copy the required automated deploy script

Copy the automated script inside the /bin folder of your project (make sure the file has execute permissions!).

2. Update circle.yml

Replace your circle.yml file with this one. And adjust the following 2 lines with your information:

- USER_NAME: <your-github-username>
- USER_EMAIL: <your-github-email>

3. Enable Circle CI.

Make sure you enabled your repository on Circle CI. After that we have to create a Read/Write deployment key. All 3 steps can be found here.

In short:

  1. Create a ssh key on your computer: ssh-keygen -t rsa -b 4096 -C "[email protected]" (leave the passphrase empty).

  2. Create a new deploy key in your GitHub project and paste the public key in there and make sure you "Allow write access".

Enable Circle CI Step 2 3. Create a new SSH key in the "SSH Permissions" tab under your project settings in Circle CI and paste the private key in there with the hostname: github.com.

Enable Circle CI Step 3

That's it, start pushing changes and enjoy your automated deployments from now on!

Want to use Travis CI? Click here to view all info on how to setup.

Support

Need help with setting up Kickster? Join me on Gitter and I help you out.

If you found a bug please report it in GitHub issues.

License

MIT License

Contributing

  1. Fork it ( https://github.com/[my-github-username]/kickster/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Big thanks to @wouterw for helping out with his Ruby magic.

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.