O'Reilly logo

Mastering MeteorJS Application Development by Jebin B V

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required