Skip to content

Sample FastAPI app for Resilience backend engineer applicant

Notifications You must be signed in to change notification settings

arceo-labs/backend-challenge-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Engineer Coding Challenge - FastAPI

Problem Statement

Create the back end portion of a simple magazine subscription service where users can manage subscriptions to available magazines using a REST API.

Stack

You can choose to implement a solution to this problem in any set of Python technologies you choose, but if you'd like a frame of reference (and time-saver), this repo contains a sample project starter with the following web stack:

Setup

  • Install Poetry
    # On Linux/MacOS
    curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
  • Install project dependencies
    poetry install

Implementation details

  • Create SQLAlchemy ORM models
    • Add new definitions in app/models/
    • Register them in app/models/__init__.py
  • Create CRUD accessors for each of the models
    • Add new definitions in app/crud/
    • Register them in app/crud/__init__.py
  • Create API endpoints for each of the models
    • Add new definitions in app/api/endpoints/
    • Register them in app/api/__init__.py
  • Add tests if any in app/tests/

Running / Testing

  • poetry run python -m app.main
  • poetry run pytest

Submitting your results

We are interested in understanding your approach and structuring a conversation around your implementation.

To prepare and send your submission:

  1. Clone this repository and implement your solution
  2. Create an archive of the project directory (e.g. - tar -czf my-name-submission.tar.gz ./my-project-directory)
  3. Email your submission to [email protected]

About

Sample FastAPI app for Resilience backend engineer applicant

Topics

Resources

Stars

Watchers

Forks

Languages