Coder Social home page Coder Social logo

letheapi's Introduction

Lethe GraphQL Api

This is a GraphQL Api that is used with the Lethe React Native application.

Build Status on master

Development:

Environment Variables

You must have the following environment variables set to run development containers.

  • SL_DATABASE_URL='mongodb://mongo:27017/dev'
    • use whatever mongo server you like, this will be the local mongo container.
    • use the following command to connect to the mongo container
      • docker exec -it letheapi_mongo_1 mongo

Optional environment variables

  • SL_APOLLO_ENGINE_API_KEY='your Apollo Engine API Key here'
  • PORT=9999 (default port is 9999)

Build and run development environment

docker-compose up --detach --build

Feel free to drop the --build, but use it for a fresh start on the images.

Update dependencies

This command will update the dev environments dependancies.

docker-compose run --rm dev yarn install && yarn cache clean

Once development environment is up, you can find check it at the following URL's

Test:

Run tests and watch

docker-compose run test yarn test:watch

Dependancies

If you need to add a dependency you will need to add it to the local host for tooling and to the container.

Local host

yarn add <dependancy>

Failing to install the dependancy on the host could cause local tooling to not work.

Container

docker-compose run dev yarn add <dependancy>

Installing the dependancy in the container is most important, failure to do so will cause the app to fail on use of a new dependancy

Production

Secrets

You will need the following secrets defined in your swarm

  • apollo_api_key
  • sl_database_url
  • now_token
  • port

Build image

docker build --label letheapi --tag letheapi_prod:0.0.4 --target prod .

Deploy stack to swarm

docker stack deploy --compose-file docker-compose.prod.yml lethe-prod

letheapi's People

Contributors

renovate-bot avatar sbardian avatar renovate[bot] avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

letheapi's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository.

  • WARN: Found renovate config warnings

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @google-cloud/storage ^5.7.2
  • @graphql-tools/schema ^8.3.1
  • apollo-engine 1.1.2
  • apollo-server ^3.6.1
  • apollo-server-express ^3.6.1
  • bcrypt 5.0.1
  • bunyan 1.8.15
  • common-tags 1.8.0
  • cors 2.8.5
  • dataloader 2.0.0
  • dotenv ^10.0.0
  • express ^4.17.2
  • express-jwt 6.0.0
  • faker 5.5.3
  • firebase-admin ^9.5.0
  • get-stream 6.0.1
  • graphql ^16.2.0
  • graphql-subscriptions ^2.0.0
  • graphql-upload ^13.0.0
  • http 0.0.0
  • jsonwebtoken 8.5.1
  • mongodb-memory-server 6.9.6
  • mongoose ^6.1.4
  • now-storage 1.3.0
  • subscriptions-transport-ws ^0.11.0
  • uuid ^8.3.2
  • yargs 16.2.0
  • @babel/cli 7.14.5
  • @babel/core 7.14.6
  • @babel/node 7.14.5
  • @babel/preset-env 7.14.5
  • babel-eslint 10.1.0
  • babel-jest 26.6.3
  • babel-plugin-inline-import 3.0.0
  • babel-plugin-source-map-support 2.1.3
  • cross-env 7.0.3
  • eslint 7.29.0
  • eslint-config-airbnb-base 14.2.1
  • eslint-config-prettier 7.2.0
  • eslint-plugin-import 2.23.4
  • husky 4.3.8
  • jest 26.6.3
  • jest-environment-node 26.6.2
  • nodemon 2.0.7
  • prettier 2.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.