raml-store provides a simple storage API plus a persistence plugin which enables you to run the RAML API Designer locally (rather than use the APIHub cloud service) and still be able to manage and collaborate on your design.
The service is built with node.js, using express and mongodb.
Go to nodejs.org, and click the Install button.
To install MongoDB on your specific platform, refer to the MongoDB QuickStart.
To start mongodb as background process:
cd /usr/local/mongodb
(mongodb installation directory)
mongod --fork --logpath /var/log/mongodb.log
From the top-level directory (e.g. raml-store):
npm install mongodb
From the top-level directory (e.g. raml-store):
npm install
From the top-level directory (e.g. raml-store):
node server
If you prefer to run the server in the background forever is awesome.
npm install forever
forever start server
curl -i -X POST -H 'Content-Type: application/json' -d '{"name":"myfirstapi.raml","path":"/","contents":"#%25RAML%200.8%0Atitle:%20%20%20DONE!!!"}' http://localhost:3000/files
curl -i -X GET http://localhost:3000/files
Follow instructions at api-designer to install and run API-Designer.
Where they reference embedding the designer, you can simply copy the sample-designer from this project into the api-designer app directory (https://github.com/brianmc/raml-store/blob/master/sample-designer.html).
The important code is the script beginning at line 75, ending at line 202.
Thanks to Christophe Coenraets, this API is based on his simple and easy-to-follow tutorial at http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/