These services store / load / list the data edited by users of a Dont-code application. They are part of the Dont-code no-code / low-code platform enabling you to quickly produce your very own application.
These services are developed in Quarkus and uses a MongoDB 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.
Data services are just Rest Services using Quarkus RestEasy Reactive and Mongo Reactive
This project is a standard maven project:
-
Installing
Download and Install Maven if necessary.
Download and Install a local Mongo database if you want to run tests
- You can define environment variable
_TEST_QUARKUS_MONGODB_PROJECTS_CONNECTION_STRINGto 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_STRINGto an existing mongodb if you want to override the default 'mongodb://localhost:27017' connection url during the development.
- You can define environment variable
-
Running tests
mvn test -
Building
mvn packageto produce the Uber Jar data-services-runner.jar -
Running in dev mode enabling lib coding
mvn quarkus:devto start the serviceshttp://localhost:8084to access the homepage -
Running in production mode
java -jar target/data-services-runner.jar
This project was generated using Quarkus io generator.
