Skip to content

Instantly share code, notes, and snippets.

@akshaymohite
Created April 21, 2017 07:09
Show Gist options
  • Save akshaymohite/e33f90217c3ca0ffa70abd840a8574de to your computer and use it in GitHub Desktop.
Save akshaymohite/e33f90217c3ca0ffa70abd840a8574de to your computer and use it in GitHub Desktop.
Sample README.md for a Rails Project
Prerequisites

The setups steps expect following tools installed on the system.

1. Check out the repository
git clone git@github.com:organization/project-name.git
2. Create database.yml file

Copy the sample database.yml file and edit the database configuration as required.

cp config/database.yml.sample config/database.yml
3. Create and setup the database

Run the following commands to create and setup the database.

bundle exec rake db:create
bundle exec rake db:setup
4. Start the Rails server

You can start the rails server using the command given below.

bundle exec rails s

And now you can visit the site with the URL http://localhost:3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment