Search⌘ K

Initializing the App

Explore how to initialize a Rails API application from scratch by creating a workspace directory and using the rails new command with the --api flag. Understand the basic structure generated for a marketplace API as you begin building your RESTful Rails app.

We'll cover the following...

Initializing a Rails application is pretty straightforward. We can initialize the app using the rails new command.

We’ll use the following commands in our terminal:

$ mkdir /workspace
...