Adamite
  • Initial page
  • Server
    • Introduction
    • Database
      • Configuration
      • Using different adapters
        • Memory Adapter
      • Securing your data
        • Securing read operations
    • Functions
      • Invokable Functions
      • Runtime Functions
      • Scheduled Functions
  • SDK
    • Introduction
    • Database
      • Introduction
      • Read a document
      • Read multiple documents
      • Subscribe to changes
      • Create a new document
      • Update an existing document
      • Delete a document
    • Authentication
      • Create a user
      • Log in and log out
      • Get the logged in user
    • Functions
      • Invoke a function
Powered by GitBook
On this page

Was this helpful?

  1. Server
  2. Database

Configuration

By default, Adamite will attempt to connect to a locally running RethinkDB instance on the default port of 28015. You can change this within the adamite.js config file.

Open the adamite.js file and adjust the following section to configure your connection to RethinkDB...

{
  name: "database",
  service: require("@adamite/service-database"),
  options: {
    adapter: new require("@adamite/service-database/adapters/rethinkdb")({
      host: "localhost",
      port: 28015,
      defaultDb: "default"
    }),
    rules: require("./database/rules")
  }
}
PreviousDatabaseNextUsing different adapters

Last updated 5 years ago

Was this helpful?