Generators for the application
The time has come to use the generators. We will follow the same flow as the previous chapter. We will develop the create travel section first and then the listing, followed by the search and finally the reservation.
Creating travel
Run the iron g:scaffold createTravel
command and you will see the following files created and updated:
created app/lib/collections/create_travel.js created app/client/templates/create_travel created app/client/templates/create_travel/create_travel.html created app/client/templates/create_travel/create_travel.js created app/client/templates/create_travel/create_travel.css created app/lib/controllers/create_travel_controller.js updated ../BookMyTravel2/app/lib/routes.js updated ../BookMyTravel2/app/server/publish.js
The generator has created a collection (create_travel.js
) and a publication (in publish.js
), which are not needed. We can ignore them. However, we will use the other components generated. Along with these files, we need...