Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Latest commit

 

History

History
64 lines (48 loc) · 1.13 KB

README.md

File metadata and controls

64 lines (48 loc) · 1.13 KB

Reviewer Submission

Design and folder structure

The application uses the following:

  • TypeScript
  • Express.js
  • GraphQL (Apollo Server)

The structre is as follows:

  • Repositories is the data access layer
  • Services is the business logic layer
  • Resolvers is the GraphQL resolver layer
  • Schemas holds all the GraphQL schemas

Setup

To run the setup and install all dependencies

make setup

Start in development mode

make start_dev

Start in development mode for testing

This will allow you to run the integration tests locally while having the main app run with hot reloading

In one terminal run:

make start_test

In another terminal:

make test_integration

Run like in CI

make run_ci

Use of reviewer-mocks

The compose files use liberoadmin/reviewer-mocks:latest.

  • make sure you have the current image with:
    docker pull liberoadmin/reviewer-mocks:latest
  • when changing mocks locally, tag it accordingly:
    cd ../reviewer-mocks
    make build
    docker tag \
      libero/reviewer-mocks:local \
      liberoadmin/reviewer-mocks:latest