Skip to content

fiksupojka/car-recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository Code Information

The code in this repository is primarily for demonstration purposes and not intended for real usage, as it has not been containerized.

Environment and Compatibility

  • Python version: 3.13
  • PostgreSQL version: 12
  • Environment tested: Local installation

Preparations Before Running Tests

Database Setup

  1. Create a user named recommender with no password:

    CREATE USER recommender;
    
  2. Create a database named recommender:

    CREATE DATABASE recommender;
    
  3. Grant all privileges on the database recommender to the user recommender:

    GRANT ALL PRIVILEGES ON DATABASE recommender TO recommender;
    

Virtual Environment Setup

  1. Create a virtual environment:
    python3 -m venv myenv
    
  2. Activate the virtual environment:
    source myenv/bin/activate
    
  3. Install all necessary libraries:
    pip3 install -r requirements.txt
    

Running the Server

  1. In the virtual environment, start the server using Uvicorn:

    uvicorn main:app --reload
    
  2. In the virtual environment, load the data:

    python3 -m load_data
    

Running Tests

  1. In the virtual environment, execute the tests:
    pytest -s test_api.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages