4.5.4 • Published 6 years ago
@heduapp/book-api v4.5.4
Book API
Usage
npm startGraphQL schema Typescript types
- The server has to run on port
3001- Alternatively, you can tinker with
graphql-codegen.yml
- Alternatively, you can tinker with
npm startnpm run generate-graphql-typingsConfiguration
.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)
- Credentials (
- DB Config (
AWS
.env:
AWS_ACCESS_KEY_ID=AKKAJFLK2039FALKSJF
AWS_SECRET_ACCESS_KEY=ffasd903fkljasdfLKFJASFOA909
AWS_REGION=eu-west-2
AWS_S3_BUCKET_NAME=bucket-nameDB
.env:
DB_HOST=127.0.0.1
DB_NAME=bo-dev
DB_USER=bo
DB_PASSWORD=boTo access the production or testing DB, create an SSH tunnel to the content service server:
ssh -L 5433:store4.rosti.cz:5432 -p 14364 app@node-14.rosti.czBack office
.env:
BACK_OFFICE_URL=http://localhost:9433Discussions
.env:
DISCUSSION_MASTER_TOKEN=tokenContributing
Logging
Use winston instance from src/logger.ts.