Configuring the database connection

This section will explain how to configure the webserver to connect to your database.

The get-client.js file

The get-client.js file configures a database connection for you webserver. By default this is configured to connect to the SINTEF Agrisolar database this can be changed by changing these values.

legg til noe om dotenv pakken eller endre til bare den

host: 'example.host.no',
port: 'portNumber', //default port for postgres is 5432
user: 'userName',
password: 'password',
database: 'databasenName',

Last updated