Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

RailStrap is a HTML5 Ruby On Rails 4 Ruby 2.0.0 bootstrap

NotificationsYou must be signed in to change notification settings

hugodias/railStrap

Repository files navigation

Demo

RailStrap is a Front-end / Back-end template using HTML5 Boilerplate, Twitter Bootstrap 3, Ruby on Rails (4.0.0) Devise ( Auth ) and Ruby 2.0.0.

Quick start

  • Clone the git repo -git clone https://github.com/hugodias/railStrap.git - ordownload it

  • Runbundle install

  • Runrake db:migrate

Then run your server

rails s

Check athttp://localhost:3000

Requirements

  • Rails 4
  • Ruby 2.0.0
  • Imagemagick (For uploading pictures)
  • Vagrant (Optional)

Features

  • Devise
  • Paperclip ( User profile picture )

Databases support

Best pratices


Change the cookie secret token atconfig/initializers/secret_token.rb

# Be sure to restart your server when you modify this file.# Your secret key for verifying the integrity of signed cookies.# If you change this key, all old signed cookies will become invalid!# Make sure the secret is at least 30 characters and all random,# no regular words or you'll be exposed to dictionary attacks.RailStrap::Application.config.secret_token = 'YOUR-NEW-TOKEN-HERE'

Thankspringles for the tip

Vagrant


RailStrap has aVagrant file to create your own Virtual Machine for development.

To get started you need to haveVagrant andVirtal Box instaled.

After that you just need to start your VM:

vagrant up
Bonus

After that you have a Ubuntu server to work, but this server isn't configured to work with rails yet! :( So i'm leaving here one virtual box image with Ruby 2.0.0 (rbenv) and Rails 4 pre-configured.

To install this server just follow this steps:

  • Download the server image here:link
  • Place the image that you downloaded in railStrap repository
  • In railStrap directory runvagrant box add railStrapMachine ubuntuRails4Ruby2.box virtualbox
  • Runvagrant box list and this new machine should be in that list
  • Now inVagrantfile changeconfig.vm.box="precise32" toconfig.vm.box="railStrapMachine"
  • To get your machine up runvagrant up

And its done ! Your vagrant vm now has Ruby 2.0.0 and Rails 4 ready to go.


License

Major components:

Everything else:

The Unlicense (aka: public domain)


[8]ページ先頭

©2009-2025 Movatter.jp