Giter Site home page Giter Site logo

lperez22 / company-update Goto Github PK

View Code? Open in Web Editor NEW

This project forked from base-cms/company-update

0.0 0.0 0.0 1.3 MB

Company update utility using the BaseCMS GraphQL API

Shell 0.21% JavaScript 55.63% HTML 0.91% Handlebars 35.12% Dockerfile 0.35% SCSS 7.78%

company-update's Introduction

Company Update Form

This repository contains the GraphQL backend, Ember frontend, and docker/compose scripts for a development environment.

Requirements

This project requires Docker Compose to develop and test. The Yarn package manager is also required, and is used instead of npm.

Runnning

  1. Clone repository
  2. Override any applicable development environment variables (see Environment Variables below)
  3. In the project root, run yarn start. Also available:
  • yarn stop (graceful shutdown/cleanup)
  • yarn kill (remove all local data)
  • yarn terminal:app Interactive terminal within the Ember app container
  • yarn terminal:graph Interactive terminal within the GraphQL graph container
  1. The application is now accessible on localhost:9905 (or whatever port you configure)

Interactive Terminal

You can load an interactive terminal for the relevant container via yarn terminal:app or yarn terminal:graph. This will allow you to add, remove, or upgrade project dependencies using Yarn (among other things). Note: the application instances must be running via yarn start for the terminal to load.

Environment Variables

Application configuration is not under version control, and must be injected as environment variables. The envalid library is used to ensure the required variables have been set.

  1. Create a .env file in the project root
  2. Set (or change) values for the following variables:
EMBER_SERVE_PORT=9905
EMBER_LIVER_PORT=9906
EMBER_TESTS_PORT=9907

GRAPH_APP_PORT=9900
GRAPH_DB_PORT=9901

GRAPHQL_URI=some-url
B4GRAPH_API_KEY=some-api-key
TENANT_KEY=some-account-group

PLATFORM_URI=https://some.domain
PLATFORM_LOGO=https://cdn.some.domain/some/path/to/some.img
NOTIFICATION_TO[email protected]

SENDGRID_FROM=root@localhost
SENDGRID_API_KEY=some-api-key

DEBUG=express:*
MONGOOSE_DEBUG=1

Note: You must specify a valid Base4Graph URI and Api Key to use this application.

Production Environment Variables

The following environment variables must be set at run-time for the production deployment of this application. The development and test environments set appropriate values for those environments within the docker-compose.yml configuration files.

# Must be configured per instance
GRAPHQL_URI=
B4GRAPH_API_KEY=
TENANT_KEY=
PLATFORM_URI=
PLATFORM_LOGO=
NOTIFICATION_TO=
SENDGRID_API_KEY=

company-update's People

Contributors

solocommand avatar zarathustra323 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.