Skip to content

Hot Wheels API using FastAPI, MongoDB, Docker. Data pulled from fandom wiki, cars from 2010-2020

License

Notifications You must be signed in to change notification settings

joedots1/fast_wheels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"})
    

About

Hot Wheels API using FastAPI, MongoDB, Docker. Data pulled from fandom wiki, cars from 2010-2020

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published