An adapted project allowing users to pin POIs (Points of Interests) and storing those locations in a database. Credits to Michael Katz at http://www.raywenderlich.com This project includes the iOS App itself and also the server written in Node.js. The current project works with the most up to date tools in the package.json file:
{
"name": "tour-server",
"version": "1.0.2",
"private": true,
"dependencies": {
"express": "4.*",
"jade": "1.*",
"mongodb": "2.*",
"body-parser": "1.*"
}
}
- Node.js (https://nodejs.org/download/)
- MongoDB
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
first thenbrew install mongodb
- Clone the repository/Download as a zip
- Download/Install Node.js and MongoDB
- cd to the
POIShare/server
and type in terminalnpm update
- MongoDB is on port 27017, and to start MongoDB type
cd /usr/local/opt/mongodb; sudo mongod
a. Alternatively, you could add:alias [Name of alias]='cd /usr/local/opt/mongodb; sudo mongod'
in ~/.bash_profile - Once you have MongoDB started up, navigate with a new terminal window to
POIShare/server/
and runnode index.js
; This will start the server that communicates to the MongoDB - After you have the server and the MongoDB up and running, open the Xcode project and run the app.
- Add User Profiles (Facebook, Google+) with OAuth and persist user info into the MongoDB
- Add Ratings to locations, other user's comments on pins.
- When separating pinned locations into categories on Map View, the locations are filtered but when initiating a drag event, the Map View reloads itself and queries all location points, thus removing category filter.
- When a picture is added to a pinned location, once the user exits the app, re-enters, and clicks on a pin and the information icon: (i), the picture is gone.
MIT License; Project solely used to learn about js server, database-server interactions, and implementation in an iOS App.