Skip to content

garazi/apigee-api-workshop

Repository files navigation

apigee-api-workshop

NOTE: A number of breaking changes have happened with Apigee 127 since this workshop (and repo) was created. I have created a new repo that contains the updated version of the workshop files. It can be found here: https://github.com/garazi/apigee-api-workshop-v2

This is the original version of a sample Node.js app that we build in Apigee's ABCs of APIs workshop. The app shows a list of restaurants, drills down to an individual restaurant showing its details, average rating, a map, and reviews for the restaurant. You can add up to two reviews per hour.

After cloning/downloading the app, you need to go into config.js in the root level of the project and change the Server: and UG: values to match where you are running the app and where your Usergrid database is located.

module.exports = {
	// Server address
	Server: "http://localhost:8888",
	// Usergrid path
	UG: "http://localhost:8080/workshop/sandbox"
}

You also need to set the baseURL variable in the Jade template: layout.jade located in the views folder. Set the fully qualified URL including the trailing slash on line 10:

- var baseURL = "http://localhost:8888/"

Then, start app.js and hit http://your-app-url/demo-data to create and populate the restaurants, reviews and users collections in Usergrid.

About

Sample Node.js app using a127

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published