![]() ![]() We have a lot of data on many levels, which means, in a document model, many levels of nested documents. Google App Engine, Bluemix or own servers for deployment.GitLab CI or Circle CI as a continuous integration tool.Various DBMS which fit a particular need, mostly MongoDB and Redis.Express or Koa as an HTTP library/framework.Our technologiesĪt Brainhub we specialize in building apps with JavaScript and we do so using the following technologies: Recently, on one of our projects, we’ve faced a challenge – We had a lot of data on many levels and we had to be able to operate directly on these documents.ĭo you want to know how we resolved our problem?īut first, let me introduce our background. Let's create our custom database configuration class ArangoDBConfiguration, it's where we'll define our database user credentials to use within the project, the database name as well as the ArangoDB host.As a software development company, we very often work on complex applications that need to handle lots of data. We then create the article collection, it's a self-explaining word representing an article as in a blog with title and content as main fields.Īs example, here's the screen to create the Document collection article: Let's switch to be connected to the database we have just created (still from the admin panel) so that we'll manage our database to do things like create collections (represents table in relational DBMS). Let's be sure the pom.xml have almost the following structure and/or content: ĪrangoDB's multi-model feature allows to manage many types of database with the same engine, for the sake of this article we will create and use a Document database for a basic CRUD API.įrom the dashboard let's create a database called alibabacloudblog as illustrated in the screenshot below (owned by the current user: root): Note: ArangoDB Java driver can be used in any Java application while arango-db-spring-data is proper for those Spring projects where we want to use repositories. Spring Data ArangoDB requires at least ArangoDB 3.0 to function. Now we've a fresh Maven project we can unzip and open with our favorite Java IDE. ![]() Let's visit to generate the structure of a Spring Boot project with the Web dependency as shown below: Maven will be used as build automation to configure our project and setup the dependencies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |