Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 792 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 792 Bytes

README

This is a basic Rails API which will serve some test data for this example map application.

Requirements

It's assumed your system has the following tools installed:

  • Ruby (> 2.2)
  • Rails (>2.5)
  • PostgreSQL

Setup

First clone the repo into a directory.

> mkdir lc_api && cd lc_api
> git clone https://github.com/koriner/lc_api.git .

To set up the app and database:

# creates and migrates the db
> rake db:create
> rake db:migrate

# seeds the db with example data
> rake db:seed

Running the app

Run the server:

> rails s

Check it's working:

Visit http://0.0.0.0:3001 in your browser. You should see the 'Welcome to Rails' homepage.

Now visit http://0.0.0.0:3001/properties. You should see some JSON output from the API.