-
Notifications
You must be signed in to change notification settings - Fork 0
Database and Models
Kevin Hannigan edited this page Feb 27, 2017
·
1 revision
We use mongodb for our database. As of the writing of this document, the project is using a database hosted by mlab. The database username, password, and secrets are held in a .env file, and are used in the config.js file when the application is run. In the future, developers will be able to use a local database and the hosted databases will be restricted to staging and production environments. Each environment's database can be configured via .env and config.js.
The database models/schemas are defined in the app/models folder. Each model gets its own file, and is typically named according to the model name. These model files can then be required by other files for use.