Create the back end portion of a simple magazine subscription service where users can manage subscriptions to available magazines using a REST API.
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:
- Python 3
- FastAPI
- SQLALchemy
- SQLite3
- Install Poetry
# On Linux/MacOS curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- Install project dependencies
poetry install
- Create SQLAlchemy ORM models
- Add new definitions in
app/models/
- Register them in
app/models/__init__.py
- Add new definitions in
- Create CRUD accessors for each of the models
- Add new definitions in
app/crud/
- Register them in
app/crud/__init__.py
- Add new definitions in
- Create API endpoints for each of the models
- Add new definitions in
app/api/endpoints/
- Register them in
app/api/__init__.py
- Add new definitions in
- Add tests if any in
app/tests/
- poetry run python -m app.main
- poetry run pytest
We are interested in understanding your approach and structuring a conversation around your implementation.
To prepare and send your submission:
- Clone this repository and implement your solution
- Create an archive of the project directory (e.g. -
tar -czf my-name-submission.tar.gz ./my-project-directory
) - Email your submission to [email protected]