What is the most light weight method to allow users to select their city and country? I am aiming to make it so that the user begins to type their city and a limited number of suggestion pop up.
I have used typeahead.js and populated a variable with 247 countries on the client. But offering the entire worlds city list as well to the user is inefficient.
I have downloaded a json file that contains all the countries and their respective cities from https://github.com/David-Haim/CountriesToCitiesJSON/blob/master/countriesToCities.json
Considering this file to be 2MB in size, it is not significant for the functionality of my app so I dont want the client to download it all.
There is a good explanation on Importing a JSON file in Meteor on how to call the file from the server.
1) Where do I place the .json file to retrieve the file from the server via a http call? There is a lib in root directory but it can also be placed in server>lib>