Add init
This commit is contained in:
parent
954fe4ec4a
commit
3365c4b940
@ -1,5 +1,4 @@
|
|||||||
# Hiring Pair Programming Excercise
|
# Hiring Pair Programming Excercise
|
||||||
|
|
||||||
## Application Description
|
## Application Description
|
||||||
This is a simple application for fair housing market prediction. The mission is to allow users to list houses, and allow them to easily view and compare all houses in the platform.
|
This is a simple application for fair housing market prediction. The mission is to allow users to list houses, and allow them to easily view and compare all houses in the platform.
|
||||||
|
|
||||||
|
|||||||
20
backend/Makefile
Normal file
20
backend/Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Variables
|
||||||
|
APP_NAME=app/main.py
|
||||||
|
VENV_DIR=venv
|
||||||
|
REQ_FILE=requirements.txt
|
||||||
|
|
||||||
|
# Create virtual environment
|
||||||
|
venv:
|
||||||
|
python3 -m venv $(VENV_DIR)
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
install: venv
|
||||||
|
$(VENV_DIR)/bin/pip install -r $(REQ_FILE)
|
||||||
|
|
||||||
|
# Run the application
|
||||||
|
start: install
|
||||||
|
$(VENV_DIR)/bin/python $(APP_NAME)
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
clean:
|
||||||
|
rm -rf $(VENV_DIR)
|
||||||
0
backend/app/__init__.py
Normal file
0
backend/app/__init__.py
Normal file
0
backend/app/core/__init__.py
Normal file
0
backend/app/core/__init__.py
Normal file
0
backend/app/dtos/__init__.py
Normal file
0
backend/app/dtos/__init__.py
Normal file
0
backend/app/models/__init__.py
Normal file
0
backend/app/models/__init__.py
Normal file
@ -5,3 +5,4 @@ class Owner(SQLModel, table=True):
|
|||||||
id: int = Field(default_factory=uuid4, primary_key=True)
|
id: int = Field(default_factory=uuid4, primary_key=True)
|
||||||
name: str
|
name: str
|
||||||
email: str
|
email: str
|
||||||
|
# TODO add houses
|
||||||
|
|||||||
0
backend/app/repositories/__init__.py
Normal file
0
backend/app/repositories/__init__.py
Normal file
0
backend/app/routers/__init__.py
Normal file
0
backend/app/routers/__init__.py
Normal file
0
backend/app/services/__init__.py
Normal file
0
backend/app/services/__init__.py
Normal file
@ -1,12 +0,0 @@
|
|||||||
[build-system]
|
|
||||||
requires = ["setuptools", "wheel"]
|
|
||||||
build-backend = "setuptools.build_meta"
|
|
||||||
|
|
||||||
[project]
|
|
||||||
name = "axiomatic-backend"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"fastapi",
|
|
||||||
"pydantic",
|
|
||||||
"uvicorn",
|
|
||||||
]
|
|
||||||
4
backend/requirements.txt
Normal file
4
backend/requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
fastapi
|
||||||
|
uvicorn
|
||||||
|
sqlmodel
|
||||||
|
pydantic
|
||||||
Loading…
x
Reference in New Issue
Block a user