1 00:00:00,450 --> 00:00:01,600 Hello and welcome. 2 00:00:01,620 --> 00:00:10,050 In a bit later we are going to create new Real's put it to create a new Rose projet this is done using 3 00:00:10,050 --> 00:00:11,980 the command line to Fiona Mac. 4 00:00:11,990 --> 00:00:18,000 You can use a Terminal find a window you can use See command print or if you've got it installed you 5 00:00:18,000 --> 00:00:19,410 can use it back. 6 00:00:19,650 --> 00:00:25,030 I will be using it before you create a project. 7 00:00:25,080 --> 00:00:27,870 Rails is being created projet anyway. 8 00:00:27,930 --> 00:00:29,620 But what was rails developer. 9 00:00:29,630 --> 00:00:36,920 Do they tend to have a designated area on their computer and create a directory there where this store 10 00:00:36,920 --> 00:00:42,690 or their Real's protect the common area in the Windows based machine. 11 00:00:42,870 --> 00:00:44,140 The my documents here. 12 00:00:44,160 --> 00:00:51,530 That's quite popular so I'm going to maintain that tradition and navigate to the to my documents here. 13 00:00:51,600 --> 00:00:56,730 So to do that you do change their screen which is see the type in documents 14 00:00:59,640 --> 00:01:04,980 and that would take me to my documents area so you can see it highlighted in your look. 15 00:01:05,520 --> 00:01:12,460 If you haven't created a directory of for that in my documents you don't have to do it in my documents 16 00:01:12,470 --> 00:01:15,830 in a way you could do anyway you could even do it on your desktop. 17 00:01:15,920 --> 00:01:22,920 I'm doing mine on my in my documents directory so it's best to always have a for that within that documents 18 00:01:22,940 --> 00:01:23,310 correct. 19 00:01:23,310 --> 00:01:29,310 If you have a you can create one I have already got one so I'm just going to navigate to that. 20 00:01:29,610 --> 00:01:38,880 So I just want a look to see what I have in my documents so I do command D I R space to enter. 21 00:01:38,880 --> 00:01:39,830 Just press enter. 22 00:01:40,010 --> 00:01:47,190 It's giving me a list of everything in there so in the directory I want is called sites so I'm going 23 00:01:47,190 --> 00:01:48,170 to navigate to it. 24 00:01:48,180 --> 00:01:58,090 I do see the sites he can see highlighted in yellow now which means I am now in the directory. 25 00:01:58,110 --> 00:01:59,170 I want to be. 26 00:01:59,370 --> 00:02:03,000 So now I can begin to create the new rails project. 27 00:02:03,390 --> 00:02:11,580 Their command need is simply to typing reals in like case space followed by the word new and then space 28 00:02:11,580 --> 00:02:15,640 followed by the name you want to call your project. 29 00:02:15,690 --> 00:02:17,790 You can't leave gaps between the names. 30 00:02:17,820 --> 00:02:25,620 If your projet name is going to be a long name or a two word name always use an underscored to separate 31 00:02:25,770 --> 00:02:27,510 the works. 32 00:02:27,600 --> 00:02:30,800 If you don't want the words come like join together as one. 33 00:02:31,140 --> 00:02:37,030 So I'm going to call mine Joe Bloggs Joe Bloggs. 34 00:02:37,050 --> 00:02:40,760 I'm not using any underscore I just join in the worst scare. 35 00:02:40,770 --> 00:02:43,450 Once you've done press enter. 36 00:02:44,020 --> 00:02:45,810 And what grill's would do. 37 00:02:45,810 --> 00:02:53,320 It will create the skeleton files and folders that your application needs. 38 00:02:53,370 --> 00:03:00,720 Every Real's projet that is generated is generated this way and it creates a bunch of files and folders 39 00:03:01,110 --> 00:03:04,430 that will enable the application to function. 40 00:03:04,460 --> 00:03:13,670 So all these auto generated files and folders will help make of this troxell of the reals application 41 00:03:13,670 --> 00:03:17,880 so let's have a look to see if we can see some of them here. 42 00:03:17,940 --> 00:03:27,530 The best way to easily see this is to open the file and as far as in your text editor so was. 43 00:03:27,570 --> 00:03:29,530 Now that we've created it. 44 00:03:29,700 --> 00:03:34,650 So let's navigate to the name you called your project. 45 00:03:34,650 --> 00:03:39,930 I called mine drill block some are going to do see the jewel blocks 46 00:03:43,620 --> 00:03:45,090 so it's important. 47 00:03:45,090 --> 00:03:47,970 You can see here now your same master. 48 00:03:48,030 --> 00:03:56,390 It's important that you navigate change directly to your project because everything you're going to 49 00:03:56,400 --> 00:03:59,250 do from now on will be done inside that projec. 50 00:03:59,250 --> 00:04:05,690 The thing with having read real projects is that they are kind of like an isolated environment so everything 51 00:04:05,690 --> 00:04:11,880 I'm going to do now relating to this project will be done inside that directory so it's important that 52 00:04:11,880 --> 00:04:12,950 you navigate. 53 00:04:13,080 --> 00:04:19,440 So when you issue commands the commands are issued against the right Directorate. 54 00:04:19,770 --> 00:04:26,530 So we're now in the correct directive which is the jewel blocks in your may not be called Joe Bloggs 55 00:04:26,550 --> 00:04:28,010 wherever yours is caught. 56 00:04:28,050 --> 00:04:30,140 Make sure you in the right direction. 57 00:04:30,450 --> 00:04:40,080 The best way to see the files and folders that was auto generated is to actually open the mob in your 58 00:04:40,080 --> 00:04:42,790 text editor some years in sublime text. 59 00:04:42,840 --> 00:04:49,180 I'm going to click on sublime text and go to file an open folder. 60 00:04:49,590 --> 00:04:55,880 So I'm going to navigate to all my documents and pick up my fault. 61 00:04:55,900 --> 00:04:57,050 That's it. 62 00:04:57,280 --> 00:04:59,840 So the best opening of being a text editor. 63 00:04:59,880 --> 00:05:04,200 You can see what more important file directory here's this one here. 64 00:05:04,230 --> 00:05:05,330 What happened. 65 00:05:05,370 --> 00:05:09,890 This is where we'll do most of our work in this project. 66 00:05:09,910 --> 00:05:13,070 And most of the work would be done within this project. 67 00:05:13,320 --> 00:05:20,400 So these are all the files generated or generated when the project was created. 68 00:05:20,400 --> 00:05:23,800 So that's it for this shot in this lecture. 69 00:05:23,820 --> 00:05:29,100 We have successfully created in New rails projet. 70 00:05:29,220 --> 00:05:30,300 Thanks for watching. 71 00:05:30,300 --> 00:05:31,330 Bye for now.