A simple demo of a web page interacting with sleepy mongoose REST api using JQuery. Instructions for Mac OSX running MAMP.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
demo.html
jquery-1.7.1.min.js
script.js

README.md

Sleepy Mongoose Localhost MAMP Demo (Mac OS X)

1. Install MAMP, mongodb and Sleepy Mongoose

2. Configure your web server to forward /api requests to sleepy mongoose

If you use MAMP edit the file /Applications/MAMP/conf/apache/httpd.conf add the following line:

ProxyPass /api http://localhost:27080/

3. Change document root on your MAMP Preferences

  • open mamp preferences window
  • click the Apache tab
  • change Document root for the folder of this demo
  • Start Servers

4. Make sure both Sleepy Mongoose and mongod are running

5. Open demo.html