Closed C83 closed 6 years ago
rails new my_api --api -d postgresql -S -T -J -C --skip-turbolinks
--api
disables few browser features, view part of the app and controllers inherit from ActionController:API instead of ActionController:Base. -d postgresql
to use postgresql instead of sqlite3-C
to disable action-cable-J
to disable javascript-T
to disable test-S
to disable sprocket (the gem provide asset pipeline but there is no view so no asset pipeline with api)--skip-turbolinks
to disable turbolinks (the gem is used to improve and fluidify the navigation, useless with api)Done
Why ?
Creating the app, "the right way" will help the process as changing the default after is a bit tedious/difficult in rails.
Must have:
Todo
Reading list
What is rails api mode
What is a middleware