Back to Mid Level

Frontend with API-first backend


Prerequisite
  • Use any language of your choice for backend (can’t be javascript)
  • Use a PostgreSQL database
  • Use React for the frontend
  • Docker Compose

Requirements

  • Backend
    • Upload endpoint
      • POST-BODY: a pipe-delimited TXT file.
      • Side effect: The uploaded file is parsed and persisted into a PostgreSQL database. The format of the file will be: <order_id> | <product_name> | <product_quantity>. Example: 2 | Eggs | 20
      • Output: HTTP 200 response with JSON output of the number of lines in the file. JSON output shall contain the id of the upload. There can be multiple uploads for each user.
    • Read Single endpoint
      • Input: upload id
      • Output: HTTP 200 response with JSON output of the upload id
    • Delete endpoint
      • Input: upload id
      • Output: HTTP 200 response with JSON output of the upload id that got deleted
  • Frontend
    • React App
      • Create a React frontend that makes use of the above endpoints. The UI can be sparse but should still look compelling.
    • CORS
      • There should be no CORS issues between frontend and backend. There should be no JS errors in the console on the frontend.

Deliverable

  • A commit history that tells a story
  • A README with details such that someone without any context to this exercise would be able to understand what is going on and being delivered
  • A GitHub repo with read permissions given to GitHub users rafty8s,bsneider, omnipresent07, and barakstout (how to invite collaborators)