Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const process = require('process');
const express = require('express');
const swaggerUi = require('swagger-ui-express');
const YAML = require('yamljs');
Expand All @@ -23,12 +24,7 @@ app.use((err, req, res, next) => {

const main = async () => {
try {
await ottoman.connect({
bucketName: 'travel-sample',
connectionString: 'couchbase://localhost:8091',
username: 'Administrator',
password: 'password',
});
await ottoman.connect(process.env.OTTOMAN_CONNECTION_STRING);
await ottoman.start();
const port = 4500;
app.listen(port, () => {
Expand Down