Code Monkey home page Code Monkey logo

meet-me-app's Introduction

Meet-Me app

Simple Ruby on Rails web application based in Foursquare. Includes rspec tests for MVC and routes.

Each location has visits, wherein one visit has one user. It is possible to have many visits in one location, but only one location and one user per visit.

Install & config

Needs Ruby 2.1, Rails 4.1 and PostgreSQL.

$ git clone https://github.com/naoisegolden/Meet-me-app.git & cd Meet-me-app
$ bundle install
$ rake db:create
$ rake db:migrate
$ rake db:seed

If PostgreSQL needs to be installed:

$ brew install postgres
$ initdb /usr/local/var/postgres

To start the PostgreSQL server:

$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Note: do this before $ rake db:create

Run

$ rails server

Go to http://0.0.0.0:3000/

Deploy to Heroku

# Install Heroku Toolbelt https://toolbelt.heroku.com/
$ heroku login
$ heroku create
$ git push heroku master
$ heroku run rake db:migrate
$ heroku run rake db:seed # if first time
$ heroku ps:scale web=1
$ heroku open

API

Locations

http://0.0.0.0:3000/locations.json

[
  {
    "name":"Beach",
    "city":"Mallorca",
    "country":"Spain",
    "latitude":"39.695263",
    "longitude":"3.017571",
  }
  …
]

http://0.0.0.0:3000/locations/1.json

{
  "name":"Beach",
  "city":"Mallorca",
  "country":"Spain",
  "latitude":"39.695263",
  "longitude":"3.017571",
  "user":
    {
      "name":"Jane",
      "email":"[email protected]"
    }
}

meet-me-app's People

Contributors

buzzlightyear182 avatar benja83 avatar naoisegolden avatar dario-c avatar

Watchers

James Cloos avatar Cat Burston avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.