Skip to content

JuanICasareski/Dev-Proyect-Comparaencasa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

COMPARAENCASA Dev Project

Setup

  1. Install Python 3.9.9
  2. Install Node.js
  3. Install Git
  4. Run <git clone https://github.com/JuanICasareski/Dev-Proyect-Comparaencasa>

Backend setup:

  1. Open the command prompt
  2. Move into the directory with <cd C:\Users\YourUser\YourDirectory\backend>
  3. Run <pip install -r requirements.txt>

Frontend setup:

  1. Open the command prompt
  2. Move into the directory with <cd C:\Users\YourUser\YourDirectory\frontend>
  3. Run <npm install>

Initialization

Backend initialization

  1. Open the command prompt
  2. Move into the directory with <cd C:\Users\YourUser\YourDirectory\backend>
  3. Run <uvicorn main:app --host <local ip> --port 8000>

Frontend initialization

  1. In line 17 of frontend/src/components/PlateInput.jsx change <host ip> for the ip of the backend host
  2. Open the command prompt
  3. Move into the directory with <cd C:\Users\YourUser\YourDirectory\frontend>
  4. Run <npm start>

Usage

Uploading data into de database

  1. Open the command prompt

  2. Move into the directory with <cd C:\Users\YourUser\YourDirectory\backend>

  3. Run <python3 uploadCarData.py <your json file>>

    Note: the json file must include the extension and respect the following format: https://imgur.com/a/R0PADpU

Frontend use

  1. Open https://<frontend host ip>:3000
  2. You should get the following structure: https://imgur.com/a/VKO5p3W
  3. Now just type the car plate and expect the car model below the textbox

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published