Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.85 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.85 KB

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 [email protected]: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