slibby / koop-sample-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Koop Sample App

A sample Koop application with some common providers.

This app makes it easy to get started running your own instance of Koop. It's also helpful for trying out Koop's functionality and testing providers, caches, plugins, and deployments.

If you're new to Node.js development, you can read more about setting up a development environment here.

Instructions

Clone this repository on your machine.

git clone git@github.com:koopjs/koop-sample-app.git

Change the working directory to the newly created koop-sample-app folder.

cd koop-sample-app

Install Koop's dependencies.

npm install

Create a koopdev PostgreSQL database and enable PostGIS.

$ createdb koopdev
$ psql koopdev

koopdev=# CREATE EXTENSION postgis;
CREATE EXTENSION
koopdev=# CREATE EXTENSION postgis_topology;
CREATE EXTENSION
koopdev=# CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION
koopdev=# CREATE EXTENSION postgis_tiger_geocoder;
CREATE EXTENSION

Start the server.

npm start

Take Koop for a test drive!

You can try fetching a resource directly in the browser (such as localhost:1337/github/benbalter/dc-wifi-social/bars/) to confirm koop is running.

Resources

License

Apache 2.0

About

License:Other


Languages

Language:HTML 82.4%Language:JavaScript 17.6%