A highly versatile REST Datastore
Project description
README
Code Quality
Description
concrete-datastore
is a highly versatile HTTP REST Datastore based on the web framework Django.
It is used mainly as a HTTP database server for single page web application (SPA).
As opposed to a classic database server such as PostgreSQL or MySQL where queries are performed using SQL language, each operation is performed using plain HTTP requests. concrete-datastore
abstracts the database layer.
concrete-datastore
can be seen as a NoSQL server or as a Firebase alternative.
Quick start
git clone https://github.com/Netsach/concrete-datastore.git
cd concrete-datastore
docker run --name postgres-concrete-datastore -d -p 5432:5432 postgres
export DATAMODEL_FILE=./docs/assets/sample-datamodel.yml
python3 -m venv env
source env/bin/activate
pip install -e ".[full]"
concrete-datastore makemigrations
concrete-datastore migrate
concrete-datastore createsuperuser
concrete-datastore runserver
Now browse to http://127.0.0.1:8000/concrete-datastore-admin/
You can now create a token to use the API (or use the login endpoint).
Features
concrete-datastore
comes with a lot of built-in features such as:
- User and permission management
- Automatically generated backoffice for administrators
- Fully REST API using JSON as serialization format
- Simple statistics generation
- Email sending capabilities from the API
- ...
How does it work ?
In order to describe the database schema, the developer has to write a datamodel
file in YAML or JSON. This datamodel
file allows concrete-datastore
to manage the underlying database using PostgreSQL.
Each API requests is controlled by this datamodel
file as it acts as a specification of what is in the database and what should be allowed per user.
You can create manually the datamodel
file following the examples and the documentation or use the online editor microservices.rest
Official documentation
See the official documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for concrete-datastore-1.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f0e3933ee733ec57bc110aadae801c1358d4690cd278061d6d246ff8c4f688 |
|
MD5 | 1fa5a87123dabdff3e0f19fe96a4370b |
|
BLAKE2b-256 | 0ef00d60b96e8218195c9f734503fb3dc1c3a793eadc31b2f225527d39a0d82d |
Hashes for concrete_datastore-1.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a0a7996db776d22ddb330cb9b0661a834294a34850c1a1abbecf9140a49c70 |
|
MD5 | d006576fe5f9c9a06298cee77b960072 |
|
BLAKE2b-256 | 26e64f479b2a932cd5b46c36ef977efec309bdb75f0559ef5bad66eb8bc107e8 |