Coder Social home page Coder Social logo

ar_demo's Introduction

Craft Academy Rails 5.2 Boilerplate

In order to get you started with Rails, we've set up a boilerplate application using the following setup:

  • Rails 5.2
  • Cucumber - acceptance testing framework
  • RSpec - testing framework that we will be using for unit testing
  • ShouldaMatchers - to simplify our testing in RSpec

Setup

  1. Copy the url an clone the repository to you localhost

  2. Open the config/application.rb and chage the application name from Boilerplate to whatever you want to call your application (i.e. SlowFoodOnline)

 

module SlowFoodOnline
  class Application < Rails::Application
  # ... code removed for readability.
end
  1. Open the config/database.yml and change the database name from boilerplate_test, boilerplate_development, etc, to for example slow_food_test, slow_food_development and slowfood_production. Also, if you see a username set to boilerplate change that to slow_food as well (Again, if you use a different name for your app, make sure you follow the naming standard outlined in the examples above).

  2. In your terminal, inside the project folder, run the following command to remove the Git original repository:

  $ rm -rf .git  

  1. And initiate a new repository (that will give you a clean state and history)
$ git init
  1. Now, head over to GitHub and create a new repository on your account. Copy the repo url, and add it as your origin remote.
$ git remote add origin <your repo url>
  1. Run bundle install and rails db:create db:migrate in your terminal (in the project folder)

  2. Commit and push to your remote.

This should give you a clean repo history.

ar_demo's People

Contributors

tochman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.