Giter Site home page Giter Site logo

Matt Rayner CircleCI Code Climate Test Coverage Inline docs

Matt Rayner - Full Stack Rubyist Based in London

This repo contains my full portfolio website, including the custom CMS. It is published as an example of my work. It includes continuous integration and delivery using Circle CI along with Capistrano (see the included configuration file)

Installation and Setup

NOTE: This application has been developed with Ruby version 2.2.1 and Rails version 4.2. Please ensure these are installed before installing and setting up the application.

Clone the GIT repo

$ git clone [email protected]:mattrayner/mattrayner.git
$ cd mattrayner

Install NodeJS

OSX

$ brew install node

CentOS

$ curl -sL https://rpm.nodesource.com/setup | bash -
$ yum install -y nodejs

Install ImageMagick for image resizing

OSX

$ brew install imagemagick

CentOS

$ yum install ImageMagick

Set up the environment

OSX (development)

$ cp .env.sample .env

CentOS (production)

Set up environment variables for all of the values in .env.sample and SECRET_KEY_BASE. If running passenger as root, use

$ nano /etc/profile

and add export commands to the bottom of the file.

Note: To update external API data in development, please ensure you fill in the .env file with applicable data.

Install all of the GEM dependencies with bundler:

$ bundle install

Set up the database

OSX

For development, set up the database user and databases

$ brew update
$ brew install mysql

CentOS

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo yum localinstall mysql-community-release-el7-*.noarch.rpm
sudo yum install mysql-community-server
sudo chkconfig mysqld on
chkconfig --list mysqld
sudo yum install mysql-devel
$ bundle exec rake db:create db:setup db:seed

Final Development Steps

Ensure that the test suite successfully runs on your local machine:

$ bundle exec rake db:test:prepare && bundle exec rspec

Finally, launch the application:

$ bundle exec rails s

You should now be able to see a local version of the project at http://localhost:3000. You can access the admin panel at http://localhost:3000/admin

Demo

This application can be found at http://mattrayner.uk running the master branch code base.

You can see a DEVELOPMENT version of this project at http://dev.mattrayner.uk/ THE DEVELOPMENT SERVICE MAY NOT BE AVAILABLE 100% OF THE TIME

Contributing

If you wish to submit a bug fix, you can create a pull request and it will be merged pending a code review.

  1. Clone it
  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

If you have a feature request please submit an issue and it will be prioritised.

Matt Rayner's Projects

adv360-pro-zmk icon adv360-pro-zmk

Production repository for the all-new Advantage360 Professional using ZMK engine

alexa-cookbook icon alexa-cookbook

A series of sample code projects to be used for educational purposes during Alexa hackathons and workshops, and as a reference for tutorials and blog posts.

alexa_verifier icon alexa_verifier

Rubygem to verify requests sent to an Alexa skill are sent from Amazon

alfred-workflows icon alfred-workflows

A selection of Alfred workflows. Use with https://www.alfredapp.com to automate application opening.

appinsights-rails icon appinsights-rails

A look at adding app insights logging and APM functionality to Rails through middleware

augustus icon augustus

A proposed front-end prototype for beta.parliament.uk

aws-sdk-js icon aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js

basic-sitemap-to-csv icon basic-sitemap-to-csv

A Basic python script that, taking a list of base URLs will scrape /sitemap.xml and return a CSV of all pages in each site

broadlink_rm icon broadlink_rm

A ruby library for interacting with Broadlink RM devices

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.