- Read Tutorial
- Watch Guide Video
Let's get started with the code. Open up your terminal and type the following code to create your application.
rails new Overtime --database=postgresql
In this command, I'm asking Rails to create an application called Overtime and to use PostgreSQL as the database for this application. Otherwise, it will use the default database, which is SQL Lite.
When you press Enter
, Rails will create the application for you and will include all the gems and libraries that you'll need. It should look like this.
Next, go into your Overtime directory and open the sublime editor or any other editor that you're comfortable with.
The first thing I'm going to do in the sublime editor is to change the README file. I'm going to change the extension to .md
, and will delete all its contents. I'll then insert all that we discussed in the planning lesson.
That's it. In the next video, we'll see how to create a repository on github.