A framework for a new rails 4.2.0/ruby 2.2 project for setting up the development environment.
-
Make sure you have an
RAILS_ENV
environment variable set on your machine and have it set to 'development'. -
Install your packages by running
bundle install
. -
Make sure you will need to have Mysql installed.
-
Create the database with
bundle exec rake db:create
-
You can override any environment variables such as the mysql port with a dotenv file if you wish. Read more
-
Start your mysql server
-
use
bundle exec rails s
to run the web server.
Tests are written using rspec. You can run tests with the following:
bundle exec rspec
See https://github.com/rspec/rspec-rails for the basics.