Hello artists! We have been given our new projects!. We are tasked to create some masterpieces based on a given theme. The paintings will be proudly displayed at the White House next Monday.
We will form the same teams we have for project 3.
You will work in groups of 2 for this exercise.
You should have an account @TasteKid, and an API KEY. Otherwise do this first.
We will now build a TasteKid client. We will integrate TasteKid's API with our own search engine recommendation. Take this opportunitty to implement creative styling with the CSS framework of your choice.
You're about to write a lot of AJAX-backed JavaScript βΒ using jQuery β that will complete our little Doughnut Shop app.
Make use of the fantastic and delicious https://api.doughnuts.ga. Your task is to use your JS skills to list out all the doughnuts in our database and get our form working so we can add more.
Note: Keep in mind, this API doesn't persist (so that other students can use it, too), but it does act like it. When you create a new doughnut, it'll show you results as if that doughnut was persisted. Make use of it!
Work with your partner next to you. Use one laptop. The driver switches every 15m.
To practice using Mongoose, we will design a small data persisting application to keep track of airport data with different models: Airport, Terminal, Flight, and Passenger. You will have to write the models and then hard code data in your app.js
file according to the requirements below. Since we're not worried about Express or views in this activity, log the results of your data persistence in the console when the file is executed - with node app.js
- so we know what's being saved.
We are now going to continue building features for our employer HonestBank! π
We are going to use the TDD methodology. This means:
We know how to create an MVC app, and we've discovered ActiveRecord, which allow us to manipulate records and associations in the database really easily. For the next lab session, we're going to build a Cookbook app:
By the end you should be able to create records and associations in the Rails console bin/rails c
. Generate and run the migrations and create the models with all the associations so that it is possible to link the models in the console.
Remember that you can specify references
when creating models, this way the migration also generates foreign keys which are needed to build the relationships between tables.
# This command assumes there is a manufacturers table
You are tasked with creating a table in your freshly created reservations
database. This table will hold plane tickets detail information.
Be mindful of the data types you will choose for your table columns. Being told you don't have enough fuel to reach your destination mid flight is no joke!
Remember that to create an Active Record migration, you need to use Rake and its tasks: Example:
class Kitten | |
@@lives = 9 | |
# serves the purpose of setting up the object | |
def initialize( name, color, owner ) | |
@name = name | |
@color = color | |
@owner = owner | |
end | |