You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,15 @@ gem "rails", "~> 6.1.3"
28
28
29
29
## Rails API 💎
30
30
31
-
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