Moonlee Records and Moonlee Booking website
Ruby CSS HTML JavaScript Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app Adaptive Facebook widget May 27, 2017
bin Updated rails/bin Dec 17, 2016
config
db Updated schema Jan 30, 2017
lib Few visual updates (border on hover, better buy links etc) Feb 6, 2017
log initial commit Mar 21, 2016
public
scripts Set default env Oct 9, 2016
spec Fixed tests May 3, 2017
test Added rubocop Mar 31, 2016
tmp initial commit Mar 21, 2016
vendor/assets
.babelrc
.codeclimate.yml
.csslintrc codeclimate files Jun 11, 2016
.eslintignore codeclimate files Jun 11, 2016
.eslintrc
.gitignore Removed jspm. Added sprockets Jan 8, 2017
.rspec
.rubocop.yml
Capfile
Gemfile Updated songkickr (to use artist_performances) Jan 29, 2017
Gemfile.lock Updated songkickr (to use artist_performances) Jan 29, 2017
README.md
Rakefile initial commit Mar 21, 2016
circle.yml Temporary disabled teaspoon Jul 28, 2016
config.ru
package.json Few visual updates (border on hover, better buy links etc) Feb 6, 2017

README.md

Moonlee website

Circle CI Code Climate Test Coverage Issue Count

Setup

Prerequisites

Install gems

$ bundle install

Setup frontend

We are using npm to take care of the frontend packages and sprockets-es6 so that we can use ES6.

$ npm install

Setup database

$ rails db:create
$ rails db:migrate
$ rails db:seed

Run

$ rails s

Config file

There is a application.yml.dist file in config directory. Be sure you rename it to application.yml and then set parameters according to your local environment.

Debugging

Simply drop

byebug

wherever you want to start debugging and the execution will stop there.

Tests

Backend tests

Run all the tests

$ bundle exec rspec spec

Or, run a single test

$ bundle exec rspec /home/drazen/dev/moonlee-website/spec/controllers/booking/artists_controller_spec.rb
Frontend/Javascript tests
rake teaspoon

Tests are also running on each build (Circle CI).

Rubocop

We use Rubocop in order to find code inconsistency. Rubocop runs on every build (Circle CI) but you can also run it locally.

$ rubocop -R -D

Random dev stuff

Rebuild everything
rake db:drop db:create db:migrate db:seed songkick:fetch_upcoming_events social:fetch_instagram social:fetch_youtube social:fetch_twitter

Administration (local environment)

Go to localhost:3000\admin

Username: admin@example.com
Password: password

Deployment

$ cap production deploy

Integrations

  • Instagram
  • Youtube
  • Twitter
  • Songkick
  • Mailchimp

Sections

Records

www.moonleerecords.com

Booking

booking.moonleerecords.com

Credits

Frontend and backend development: Dražen Perić

Design: Antonio Karača