Database Documentation - Junior-Devs/2020-Junior-Devs-Project GitHub Wiki
-
We are using Knex.js for Database Queries
-
PostgreSQL is used as DBMS.
-
Database details are stored in the following environment variables:
-
DB_URL (This is the preferred access method, containing all credentials)
-
DB_HOST
-
DB_NAME
-
DB_USER
-
DB_PASS
-
-
All endpoints will return true JSON Objects.
-
All returned JSON Objects will include a
"result"
key with a value of200
for successful data retrieval and400
if unsuccessful.