Socket
Book a DemoInstallSign in
Socket

@heduapp/book-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heduapp/book-api

``` npm start ```

latest
npmnpm
Version
4.5.4
Version published
Maintainers
1
Created
Source

Book API

Usage

npm start

GraphQL schema Typescript types

  • The server has to run on port 3001
    • Alternatively, you can tinker with graphql-codegen.yml
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 app@node-14.rosti.cz

Back office

.env:

BACK_OFFICE_URL=http://localhost:9433

Discussions

.env:

DISCUSSION_MASTER_TOKEN=token

Contributing

Logging

Use winston instance from src/logger.ts.

FAQs

Package last updated on 23 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts