Available on http://loconot.herokuapp.com
Have you ever used the stars option on Google Maps? This awesome feature is provided by Google directly into Maps and let users put some stars on their favorites places over the world. Unfortunately it's currently impossible to customize this marker, by adding comments or notes. Then I decided to implement this feature by playing around with Backbone.js.
The main goal of this project is to get an insight regarding attractives technologies and mainly Backbone.js. This project is my first MV* JS project. It is also a good way to play with an ODM and improving my skills in ruby.
- Backend/Server: Restfull API - Ruby - Sinatra Framework
- Frontend/Client: Client - JavaScript - Backbone.js Framework
- Database: MongoDB
GoogleMapsApi (v3), TwitterApi, Gulp Require.js, Underscore.js, jQuery, Handlebars, Less.
- Ruby >1.9
- MongoDb
- Nodejs 0.10.x
This app requiere a Twitter application to login. You need to create an app on https://dev.twitter.com/. If you want to get a temporary one drop me a line.
First, clone this project.
Installation on MacOsX
$ sudo gem install bundler
Using brew:
$ brew install node
Install MongoDb and run MongoDb.
Add credentials into your environment
#LOCONOT APPLICATION HEROKU ENV
export LOCONOT_TWITTER_CONSUMER_KEY='YOUR_KEY'
export LOCONOT_TWITTER_CONSUMER_SECRET='YOUR_SECRET'
To install the backend
$ cd loconot
$ bundle
Then to install the client use these commands:
$ cd loconot/client
$ npm install
Be sure that MongoDb is running first, then run the Sinatra application:
$ rackup config.ru
$ cd loconot/client
$ gulp
Go to http://localhost:9292 and enjoy!
To generate a unique JS file client application you can run the build task
$ cd client
$ gulp build
Then, you can deploy the dist/main.js
generated.