This chapter will explain you on how to create simple todo app.
Open the command prompt and run below commands
To see the app, run the app with the meteor command and go to http://localhost:3000
Instead of default file structure we will refactor it. Let's create client folder where we will create todo-app.html, todo-app.css and todo-app.js.
Let’s also create server folder with server.js inside.
Finally create a collections folder with task-collection.js file inside.
You can view the app structure in below image
First development step is to create HTML for the app. An input field is needed where you can add new tasks and these tasks will be in a form of list with delete and check functionality. We will also have functionality for showing or hiding completed tasks.
In this step we will just create new MongoDB Collection so that we can use it on both server and client side.
Next define methods for the app on server side and these methods will be called from the client. In this file we will also publish database query.
Once we are done with development, we can deploy the app from command prompt window and deployment name of our app will be my-first-todo-app.
We can open the http://my-first-todo-app.meteor.com/ to start using our app.
Meteor Related Interview Questions
|Android Interview Questions||Mobile Testing Interview Questions|
|Angular JS Interview Questions||Node.js Interview Questions|
|Framework7 Interview Questions||Java Abstraction Interview Questions|
|ReactJS Interview Questions||Backbone.js Interview Questions|
|D3.js Interview Questions||Java collections framework Interview Questions|
|jQuery Mobile Interview Questions||Cordova Interview Questions|
|MongoDB Interview Questions||Mobile Application Testing Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.