https://github.com/dont-code/data-services
Enable loading / storing data of applications designed using the Dont-code platform
https://github.com/dont-code/data-services
Last synced: 3 months ago
JSON representation
Enable loading / storing data of applications designed using the Dont-code platform
- Host: GitHub
- URL: https://github.com/dont-code/data-services
- Owner: dont-code
- License: agpl-3.0
- Created: 2021-06-10T13:07:48.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T13:31:20.000Z (about 1 year ago)
- Last Synced: 2025-03-10T14:28:51.340Z (about 1 year ago)
- Language: Java
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## What is it for ?
These services store / load / list the data edited by users of a Dont-code application.
They are part of the [Dont-code](https://dont-code.net) no-code / low-code platform enabling you to quickly produce your very own application.
## What is it ?
These services are developed in [Quarkus](https://quarkus.io) and uses a [MongoDB](https://mongodb.com) database to store the data in json format.
By default, Dont-code provides two ways to store the data generated by any application:
- Either it is stored locally in the Browser (as IndexedDB), this is all managed client-side by the Previewer
- Or it is shareable hence sent to these services for a storage in MongoDb.
Please note Plugins can provide alternative ways for handling application's data.
## How is it working ?
Data services are just Rest Services using Quarkus RestEasy Reactive and Mongo Reactive
## How to build it ?
This project is a standard maven project:
1. Installing
Download and Install [Maven](https://maven.org) if necessary.
Download and Install a local [Mongo database](https://mongodb.com) if you want to run tests
- You can define environment variable `_TEST_QUARKUS_MONGODB_PROJECTS_CONNECTION_STRING` to an existing mongodb if you want to override the default 'mongodb://localhost:27017' connection url during the test.
- You can define environment variable `_DEV_QUARKUS_MONGODB_PROJECTS_CONNECTION_STRING` to an existing mongodb if you want to override the default 'mongodb://localhost:27017' connection url during the development.
2. Running tests
`mvn test`
3. Building
`mvn package` to produce the Uber Jar data-services-runner.jar
4. Running in dev mode enabling lib coding
`mvn quarkus:dev` to start the services
`http://localhost:8084` to access the homepage
4. Running in production mode
`java -jar target/data-services-runner.jar`
## Thank you
This project was generated using [Quarkus io generator](https://code.quarkus.io/).