mapineda / veda-solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Veda Solutions

About

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

Pre-requisites:

  • Docker

How to:

Set up:

  • in root mlb-app build docker container docker-compose -f local.yml build

Run:

  • run the stack docker-compose -f local.yml up

Create a User

  1. run migrations docker-compose -f local.yml run --rm django python manage.py migrate
  2. run create superuser command docker-compose -f local.yml run --rm django python manage.py createsuperuser
  3. navigate to http://0.0.0.0:8025/ to confirm email

Methodology:

This application was created using cookie-cutter django for quick setup of a production-ready django project.

Structure:

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.

About


Languages

Language:Python 65.0%Language:HTML 19.4%Language:Shell 8.0%Language:Dockerfile 4.7%Language:Batchfile 1.0%Language:Makefile 0.9%Language:SCSS 0.6%Language:CSS 0.2%Language:JavaScript 0.0%