Dreh Auf CMS GraphQL endpoint.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
We use dotenv to keep secrets.
⚠️ The.env
file containing the secrets is included in.gitignore
and will not be tracked
You need to add the file to root and the following secrets yourself:
TYPEORM_CONNECTION
: type of database to useTYPEORM_HOST
: database host adressTYPEORM_PORT
: database portTYPEORM_USERNAME
: username with database access rightsTYPEORM_PASSWORD
: password for usernameTYPEORM_DATABASE
: database nameTYPEORM_SYNCHRONIZE
: enable synchronization of entites every time the app is runTYPEORM_LOGGING
: enable loggingTYPEORM_ENTITIES
: the entity file locations
# unit tests
$ npm run test
# unit tests on watch mode
$ npm run test:watch
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
The entity-relationship model is encoded in the file erm.drawio
. To view and edit it, follow these steps:
- Go to DrawIO and log in with Github
- Click
File
→Open from
→GitHub...
- Choose
drehauf/api
→erm.drawio