Socket
Socket
Sign inDemoInstall

ceos

Package Overview
Dependencies
516
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ceos

Ceos is an opinionated graphql server based on typedi, typeorm, and type-graphql


Version published
Weekly downloads
1
decreased by-95.65%
Maintainers
1
Install size
67.5 MB
Created
Weekly downloads
 

Readme

Source

CEOS

Opinionated graphql server based on TypeDI, TypeORM, and TypeGraphQL

Usage

  1. Install dependencies: yarn add ceos
  2. Install dev dependencies: yarn add -D dotenv nodemon ts-node tslint typescript
  3. Set up start script: node --inspect=5858 -r dotenv/config -r ts-node/register ./src/index.ts
  4. Set up the environment variables in .env (see below)

Configuration Variables

  • PORT: The listening port of the server
  • DB: Database configuration: postgres://postgres@[SERVER]:5432/[DATABASE]
  • DB_SYNC: Automatically synchronize database models
  • MAIL: Mail configuration: smtp://[USER]:[PASSWORD]@[HOST]:[PORT]
  • MAIL_FROM: Sender email

Examples

See examples/ for examples how to use ceos.

Development

Release a new version:

  1. Run tests: yarn lint
  2. Bump the package version to the desired new version: yarn version
  3. Commit and push: git add package.json & git commit -m "bumped to $TAG" & git push
  4. Create a new branch: git checkout -b release
  5. Build the library: yarn build
  6. Add dist files: git add -f dist & git commit -m "added distribution files"
  7. Create git tag: git tag $TAG & git push --tags
  8. Publish the library: npm publish
  9. Clean up: git checkout master & git branch -f --delete release

FAQs

Last updated on 26 Jan 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc