Skip to content

Database Configuration

Hussein Abdeljabbar Ismail Martínez edited this page Apr 5, 2021 · 1 revision

Server uses an "ormconfig" file for the configuration of database connection. To make it work you need to create an "ormconfig.json" file under your server folder (root of server folder) with the contents below.
DO NOT PUSH THIS FILE TO GITHUB!!!

[
 {
    "type": "postgres",
    "host": "localhost",
    "name": "development",
    "port": 5432,
    "username": **YOURUSERNAME**,
    "password": **YOURPASSWORD**,
    "database": "thesisdb",
    "entities": ["dist/**/*.entity.js"],
    "synchronize": true
  },
  {
    "type": "postgres",
    "name": "test",
    "host": "localhost",
    "port": 5432,
    "username": **YOURUSERNAME**,
    "password": **YOURPASSWORD**,
    "database": "thesistestdb",
    "entities": ["dist/**/*.entity.js"],
    "synchronize": true
  }
]

Clone this wiki locally