Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Build Applications with Meteor

You're reading from   Build Applications with Meteor Isomorphic JavaScript web development

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129887
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dobrin Ganev Dobrin Ganev
Author Profile Icon Dobrin Ganev
Dobrin Ganev
Arrow right icon
View More author details
Toc

Building the app


The UI of the app should look something like this:

It will have a search bar, a result list, and a map where we can visually locate the search results. We have already created the app and imported the data; now open it with the editor of your choice and start creating the required folders and files:

As you may have noticed, we are keeping the same folder structure as we did in the previous chapters. Since we will be using Redux to store some of the application's state, our first step is to define the user actions and what state we want to persist. Let's list them:

  • A text query: We can persist the user input in our store
  • Returned results: We will persist the result from the query and pass it down to the children components for rendering
  • Going to a location: The user should be able to click on an item in the result list and the map should be updated to that location based on the latitude and longitude of the record

Let's start creating all the actions creators and action types in...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime