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

Pararius/casco-job-interview

Repository files navigation

Repo that is used by the Aanbod Team to do job interviews.

In this assignment we are going to:

  • Read a CSV file
  • Publish the listings to Google PubSub
  • Read from PubSub and write the data to Firestore

The code is already implemented, only not in a very object oriented way.

Overview

Installation

First make sure to install Docker. Then, to install everything:

make install

This will build a php container, a Firestore emulator, and a PubSub emulator.

Usage

The application consists of 3 commands. You can run them inside the php container:

make up
docker compose run --rm php sh

(This will automatically start the PubSub and Firestore emulator)

Commands

Step 1: import data from the CSV file:

bin/console listings:import

Step 2: process the imported data (from PubSub):

bin/console listings:process

Step 3: show the processed data (from Firestore):

bin/console listings:show

You can also run all steps sequentially:

make run

Testing

To run the tests:

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •