Skip to content

This is a sample jsoneng tutorial for my other json database engine project

Notifications You must be signed in to change notification settings

youhengzhou/sample-jsoneng-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-jsoneng-tutorial

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.

image

The image above is where the sample database is in the file tree

image

Here we import jsoneng and we create a new empty database called SampleDataBase, which will act as the database's name.

image

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.

image

And this is what the data look like at the end.

About

This is a sample jsoneng tutorial for my other json database engine project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published