- Ruby
By the end of this lesson, students should be able to:
- Create an API
- Fork and clone this repository.
- Create a new branch,
training
, for your work. - Install dependencies with
bundle install
- Once dependencies have finished installing open your rails server in another
terminal tab with
rails server
.
It's your turn now to create an API using what we learned, your notes, previous repositories, the power of the internet, and your fellow developers.
- Create a full cookbook API.
- You should have an
Ingredient
model,Ingredients
controller, and matching routes. - Your
Ingredient
model should havename
,std_measure
andcolor
columns. - Via migration add a column called
toxicity
- Have a serializer, that censors sensitive information from the client.
- Make a sucessful curl request for all C.R.U.D actions.
- Be meticulous, did you check your pluralization? is your spelling correct? Did
you miss and
end
? - Test frequently, check for errors in your browser and server.
- Follow your errors, they typically give you a line number, be patient. You should be able to identity the exact line of your bug before you ask for assistance.
- Remember to use the generators to your advantage. They can save you valuable time.
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.