官术网_书友最值得收藏!

  • Bootstrap for Rails
  • Syed Fazle Rahman
  • 249字
  • 2021-07-23 20:35:46

Setting up a Todo application in Rails

Since this book is targeted for Rails developers, I assume that you already have basic knowledge of Rails development. You should also have Rails and Ruby installed in your machine to start with.

Note

While writing this book, Ruby 2.1.1 and Rails 4.1.4 was used.

Let's first understand what this Todo application will do. Our application will allow us to create, update, and delete items from the Todo list. We will first analyze the folders that are created while scaffolding this application and which of them are necessary for templating the application.

So, let's dip our feet into the water:

  1. First, we need to select our workspace, which can be any folder inside your system. Let's create a folder named Bootstrap_Rails_Project. Now, open the terminal and navigate to this folder.
  1. It's time to create our Todo application. Write the following command to create a Rails application named TODO:
    rails new TODO
    
  2. This command will execute a series of various other commands that are necessary to create a Rails application. So, just wait for sometime before it stops executing all the codes. If you are using a newer version of Rails, then this command will also execute bundle install command at the end. Bundle install command is used to install other dependencies.

The output for the preceding command is as follows:

Setting up a Todo application in Rails

Now, you should have a new folder inside Bootstrap_Rails_Project named TODO, which was created by the preceding code. Here is the output:

Setting up a Todo application in Rails
主站蜘蛛池模板: 耿马| 金坛市| 泰来县| 宾川县| 青冈县| 黄陵县| 子长县| 长兴县| 潞西市| 丁青县| 尉氏县| 定边县| 临汾市| 安乡县| 都昌县| 星座| 湟源县| 兴国县| 武强县| 囊谦县| 深泽县| 临汾市| 台南县| 万宁市| 宜兴市| 阆中市| 白城市| 日照市| 南充市| 西乌珠穆沁旗| 海晏县| 大化| 仙游县| 佛山市| 泸西县| 乌鲁木齐市| 商洛市| 获嘉县| 崇义县| 青龙| 建湖县|