README
Welcome to LouDB
This is my JSON storage database Originally intended to act as a quick and dirty JSON data store. It should be used for testing purposes only. Not suitable for production.
// Clone the repo
git clone https://www.github.com/louisbuchbinder/LouDB.git
// Navigate to the repo
cd LouDB
// Install Dependencies
npm install
// Run Server
npm start
// or Run in Dev mode
npm run start-dev
// Visit the in-browser example
http://localhost:8000
Make a post request to /save to store the payload
$.ajax.post({
url:'/save',
type:'POST',
data: {file: 'filename', data: JSON_payload}
});
Make a get request to /fetch to retreive the payload
$.ajax.post({
url:'/save',
type:'GET',
data: {file: 'filename'},
success: doSomethingWithJSONPayload
});