Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 861 Bytes

File metadata and controls

37 lines (21 loc) · 861 Bytes

fast_wheels


Code style: black License: MIT


FastAPI, MongoDB, Docker


  1. Clone the repo

    git clone https://github.com/joedots1/fast_wheels.git
    
  2. Build the Docker Containers

    docker-compose up --build
    
  3. Check The API - 0.0.0.0:8000/docs

  4. Attach shell to mongodb container:

    docker exec -it mongodb /bin/bash
    
  5. Seed the mongo db

    mongoimport --jsonArray --db admin -u admin -p admin --collection car_collection all_cars.json
    
  6. Open mongo shell

    mongo -u admin -p admin
    use admin
    
  7. Create text search index on model

    db.car_collection.createIndex({model:"text"})