Recreating the travel booking application
Create a new MeteorJS application using the iron create BookMyTravel2
command.
Remove the autopublish
and insecure
packages using the iron
remove
<package
name>
command. Visit the directories and files created inside the BookMyTravel2
directory. As I said, iron-cli wraps the MeteorJS app inside itself and in this case, it is the app
directory. The app
directory is the actual MeteorJS app. If you want to run any MeteorJS-specific commands, you have to go into the app
directory and run the commands. Both the mongo database and the .meteor
directory reside inside the app
directory. The unfortunate thing is that this scaffolding is tightly coupled to iron-router
. We have to do some rework if we wish to use any other routing solution such as
FlowRouter
. However, this is not a big deal if you know what to change and where to change. For now, let' stay on track and build the application with iron-router
itself.
Run the iron
run
command in the...