Now that have our virtual enviorment ready, we can create our first ever Rails API. The new rails api command scaffolds everything we need to get up and ready for our project. Let's start our vagrant server and ssh into our project folder.
31
+
The new rails api command scaffolds everything we need to get up and ready for our project. Let's start our rails server and being integrating the backend first.
32
32
33
33
1. Run the following: `rails new my_app -T --database=postgresql`
34
34
35
35
What's going on here? The `-T` command also tells rails that we don't want Minitest as our testing suite. You'll most likely be used to Rspec so we'll talk about that later in the guide. The ```--database=postgresql``` line is pretty much self explanatory!
36
36
37
37
## Rails API Versioning
38
38
39
-
Versioning is the process of seperating and creating new features/data/endpoints for your API. Since this is our first API, let's make our `test-api` v1.
39
+
Versioning is the process of seperating and creating new features/data/endpoints for your API. Since this is our first API, let's make our rails api v1.
0 commit comments