-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encapsulate config options of REST API server as own module.
- Loading branch information
Showing
3 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// General | ||
export const port = process.env.PORT || 3000; | ||
|
||
// CouchDB/Cloudant | ||
export const couchUrl = process.env.COUCH_URL || 'http://localhost:5986'; | ||
|
||
export const dbName = 'data-science-ontology'; | ||
export const dbUrl = `${couchUrl}/${dbName}`; | ||
|
||
export const appDbName = 'data-science-ontology-webapp'; | ||
export const appDbUrl = `${couchUrl}/${appDbName}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters