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

  • 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
主站蜘蛛池模板: 汝南县| 广平县| 会宁县| 泗洪县| 桐梓县| 民丰县| 揭西县| 唐山市| 肥西县| 岱山县| 马关县| 南宫市| 青铜峡市| 武宣县| 九龙坡区| 齐齐哈尔市| 云霄县| 米易县| 新巴尔虎左旗| 商洛市| 富锦市| 沾化县| 新疆| 南陵县| 伊宁市| 天全县| 南开区| 沈丘县| 武乡县| 梅州市| 山东省| 丹棱县| 玛多县| 巴里| 武川县| 广宗县| 黔西| 杭州市| 郑州市| 东源县| 仪陇县|