- Install Apigee 127 Globally
$ npm install -g apigee-127`
- Create the project with Apigee 127
$ a127 project create apigee-api-coders-workshop
- Download the files to install Usergrid
$ a127 usergrid download
- Start Usergrid
$ a127 usergrid start
- Open Usergrid page
$ a127 usergrid portal
- Login with user
superuser
and passwordsuperuser
- In the web interface, create an organization called
workshop
- Select the organization on the drop box and create an application named
sandbox
for that organization - Go to
ROLES->Guest
and click onAdd Permission
- On
Path
write/**
, select all checkboxes and click on Add - Unzip the file
demoData.zip
and in a terminal go inside it - Run the following command to insert data to the database:
$ node install.js
- On the terminal, go to the project folder and run:
$ node app.js
You should see the API on the following URL:
http://localhost:10010/
Greg Rewis, the workshop teacher, gave us a link to download the full project.
The main difference is that in the full project a graphical interface is implemented.
To run it do the following:
- Unzip
api-workshop.zip
file. - Do steps 3 to 13 of
Workshop steps
- In a terminal, navigate to the folder.
- Run the following command:
$ node app.js
You should see the app on the following URL:
http://localhost:10010/
- Edit the swagger file with:
$ a127 project edit
- Swagger Editor: http://localhost:62463/