Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
/ cc-powerus Public archive

Coding Challenge project during application process for PowerUs!

Notifications You must be signed in to change notification settings

HenningKuehl/cc-powerus

Repository files navigation

PowerUs Coding Challenge

This project was build as a coding challenge during the application process for the company PowerUs. The goal was to create a REST API which merges flights from multiple sources to get a list of unique flights.

Development

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Deploy

# Firebase functions
$ firebase deploy --only functions

Demo

A demo is available on https://europe-west3-cc-powerus.cloudfunctions.net/api/flights.

Architecture

The Backend is created with the framework NestJS. Tests are written with Jest.

Structure

All flight routes are in an own module. The controller access the services and the services access the repositories.

For a global API response there is an interceptor and a filter.

About

Coding Challenge project during application process for PowerUs!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published