Simple MLB stats scraper that takes pandas dataframe and converts to json file The data in the .json file is then wrapped in an object-array and then served locally on port: 5000
- Docker
- in root
mlb-app
build docker containerdocker-compose -f local.yml build
- run the stack
docker-compose -f local.yml up
- run migrations
docker-compose -f local.yml run --rm django python manage.py migrate
- run create superuser command
docker-compose -f local.yml run --rm django python manage.py createsuperuser
- navigate to
http://0.0.0.0:8025/
to confirm email
This application was created using cookie-cutter django for quick setup of a production-ready django project.
mlb-app uses a task management system (celery) to scrape data that will be saved in our database (postgres). This data is then serialized and served over api endpoints.