Skip to content

IMMAMAN/interview_challenge_backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inspect HOA backend challenge

This is a simple flask repository with some endpoints and requires a few more endpoints.

It follows a simple MVP (model-view-presenter) architecture with an additional data layer(repository) to access the data.

The view layer should only contain flask specific logic

The presenter layer should contain all the business logic

The model layer contains the business-models

Please fork this repository and add your solution to your new fork

The endpoints for users for this application already exist and follow the required architecture.

Please look at the code and following the same pattern, add an endpoint for the users where a user id is taken in the url and the endpoint returns the user with that user ID

Also, create a new hoas.py file in the view and presenter directories and create the endpoints which can get all the HOAs and add another HOA following the same pattern as the users endpoints

NOTE: The repositories and models for HOAs and users have been finished and should not require any change, if you do need to change it, feel free and let us know why you chose to change it.

How to run the solution:

# Create virtual environment
virtualenv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip3 install -r requirements.txt
#how to start API
python3 main.py

About

Backend Interview Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%