项目作者: playwilmington

项目描述 :
The Children's Museum of Wilmington Website
高级语言: HTML
项目地址: git://github.com/playwilmington/playwilmington.org.git
创建时间: 2017-01-14T19:45:54Z
项目社区:https://github.com/playwilmington/playwilmington.org

开源协议:

下载


Playwilmington.org

This is the repo for the Children’s Museum of Wilmington.

Status

  • Production CircleCI
  • Staging CircleCI

Getting Started

To get started with development on this site you will need to follow the below steps.

Prerequisites

Install these softwares on your machine, (Mac-OSX) used below for commands

Install PostgresApp to use as your database.

Install X-Code

  1. $ xcode-select --install

Install Homebrew

  1. $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Git

  1. $ brew install git

Install Ruby using RVM

  1. $ curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails

Update Ruby version to 2.4.0

  1. $ rvm install 2.4.0
  2. $ rvm use 2.4.0 --default

Install Image Magic

  1. $ brew install imagemagick

Installing

Setting up the Repo

Change to whatever folder you want to store everything in.

Clone Git Repo

  1. $ git clone https://github.com/playwilmington/playwilmington.org.git && cd playwilmington.org

Install Gems

  1. $ bundle install

Setup Databases

  1. $ rails db:create
  2. $ rails db:migrate
  3. $ rails db:seed

Start Server

  1. $ rails s

Navigate to localhost:3000 to begin using.

Running the tests

Below are commands to run tests and then linters all should be done before each commit to ensure successful deployments.

Run Tests

We use Minitest for all Rails Test Coverage

  1. $ rails test

Run Linters

Rubocop - Checks ruby on rails .rb files

  1. $ rubocop -D

Haml Linter - Check all Views .haml files

  1. $ rake haml_lint

SCSS Linter - Checks all Stylesheets .scss files

  1. $ rake scss_lint

Note: This creates a new file in project repo

YAML Linter - Checks all Yaml .yml files

  1. $ rake yaml_lint

Deployment

Deployments are all automated to Heroku from CircleCi. We have staging and production sites.

Development branch goes to Staging while master branch goes to Production Site.

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.