Hello, this is a sample tutorial project for my Jsoneng JSON based database.
To use the package in your project, use npm install jsoneng -U
Please refer to: https://github.com/youhengzhou/jsoneng-js for the Github project repo
Please refer to: https://www.npmjs.com/package/jsoneng for the NPM package
In this tutorial project, the jsoneng database interfaces with express and receives information from a user's POST request and creates a new database entry based on the user's data.
The image above is where the sample database is in the file tree
Here we import jsoneng and we create a new empty database called SampleDataBase, which will act as the database's name.
Here we use an express app to listen for a post request from the /post url, and uses the bodyparser to take the name
of the postData and update it against the name key in the SampleDataBase that we created earlier, with the value being the user's post data.
And this is what the data look like at the end.