@heduapp/book-api

v4.5.3
``` npm start ```

Book API

Usage

npm start

GraphQL schema Typescript types

npm start
npm run generate-graphql-typings

Configuration

.env doesn't have to exist, as long as the configuration is in the environment

Files:

  • .env (.env config example)
    • DB Config (DB_HOST, DB_NAME, DB_USER, DB_PASSWORD)
    • Back office location (BACK_OFFICE_URL)
    • AWS Config
      • Credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
      • Region (AWS_REGION)
      • S3 bucket (AWS_S3_BUCKET_NAME)

AWS

.env:

AWS_ACCESS_KEY_ID=AKKAJFLK2039FALKSJF
AWS_SECRET_ACCESS_KEY=ffasd903fkljasdfLKFJASFOA909
AWS_REGION=eu-west-2
AWS_S3_BUCKET_NAME=bucket-name

DB

.env:

DB_HOST=127.0.0.1
DB_NAME=bo-dev
DB_USER=bo
DB_PASSWORD=bo

To access the production or testing DB, create an SSH tunnel to the content service server:

ssh -L 5433:store4.rosti.cz:5432 -p 14364 [email protected]

Back office

.env:

BACK_OFFICE_URL=http://localhost:9433

Discussions

.env:

DISCUSSION_MASTER_TOKEN=token

Contributing

Logging

Use winston instance from src/logger.ts.

npm i @heduapp/[email protected]

Metadata

  • Unknown
  • Whatever
  • H-Edu s.r.o
  • released 8/13/2019

Downloads

Maintainers