- Install Python 3.9.9
- Install Node.js
- Install Git
- Run <
git clone https://github.com/JuanICasareski/Dev-Proyect-Comparaencasa
>
Backend setup:
- Open the command prompt
- Move into the directory with <
cd C:\Users\YourUser\YourDirectory\backend
> - Run <
pip install -r requirements.txt
>
Frontend setup:
- Open the command prompt
- Move into the directory with <
cd C:\Users\YourUser\YourDirectory\frontend
> - Run <
npm install
>
Backend initialization
- Open the command prompt
- Move into the directory with <
cd C:\Users\YourUser\YourDirectory\backend
> - Run <
uvicorn main:app --host <local ip> --port 8000
>
Frontend initialization
- In line 17 of
frontend/src/components/PlateInput.jsx
change<host ip>
for the ip of the backend host - Open the command prompt
- Move into the directory with <
cd C:\Users\YourUser\YourDirectory\frontend
> - Run <
npm start
>
Uploading data into de database
-
Open the command prompt
-
Move into the directory with <
cd C:\Users\YourUser\YourDirectory\backend
> -
Run <
python3 uploadCarData.py <your json file>
>Note: the json file must include the extension and respect the following format:
Frontend use