Json-db makes it possible to create and manage JSON
based databases all stored on your local hard drive (no server required).
As the database definition and content is based on JSON and stored on your own computer it is easy to get started with a new database or edit an existing database as no server needs to be configured and users created etc. Using the content of the database in other contexts is easy as well as each collection is just a simple JSON-file.
The downside of storing the database directly on the local hard drive is that multiple users cannot edit the database at the same time and changes to the database cannot be reflected on e.g. a website without additional steps to synchronize changes with the server hosting the website. Furthermore care must be taken to make sure the database files are not lost.
The use of JSON as dataformat for storing the data also put some restrictions on how large the database can be and still perform well. If the expected size of a collection is > 250.000 entries a traditional database should be considered instead.
Navigate to the database page and click "Open". In the dialog navigate to the root directory of the existing json-db database and click the "Select Folder" button in the dialog (the button name may vary depending on OS and language settings).
schema.json
file conforming to the rules described in the schema
docs.In the left menu-bar click "Create new" under the collection the new entry should be added to.
Fill out the form and click "Save and Create New". The entry will be saved (if all fields are valid) and a new empty form will open so another entry can be added. If no further entries needs to be created click "Save & Close". To see and edit the newly added entry click "Manage" in the menu bar.
In the left menu bar click "Manage" under the collection you want to manages existing entries for.
*
at the
end of a keyword.If you use the json-db editor on a regular basis it can be installed as a Progressive Web App so the editor can be opened as a desktop application, e.g., from a shortcut on the desktop.
In Google Chrome click the PWA icon in the right side of the address bar (only visible if the app is not already installed).
Click "Install" and the app will be installed with a shortcut on the desktop.
To get an idea of the structure of a database schema and its collections a few demo databases is available. Try out a database by doing the following:
A database of movies
, persons
(actors, directors and crew) and countries
(origin of the movie).
The database contains around 8.000 movies and 120.000 persons and has both nested objects and relations.
A database of authors
, books
, editions
and publishers
.
The database only have a few entries and is primarily meant to demonstrate how to model 1-M
and M-M
relations.
Creating a new database from scratch only requires some basic knowledge of data modelling and JSON documents. Read the schema docs to get started.