GithubHelp home page GithubHelp logo

explore-sa-python's Introduction

master heroku
tests tests tests
coverage coverage coverage

'Data Explorer' GraphQL back-end (Python)

This project is done to demonstrate my knowledge, which I learned recently as I try to get into the software development industry, I had a mentor to help me out. The project aims to parse UK government data on property sales, and perform statistical analysis, as well as link it with geology data, like addresses and latitude and longitude.

the aim is to build a scalable GraphQL backend, which can quickly return requested results to demonstrate complex cases of GraphQL use, such as N+1 problem, scaling where more than one database is required [write/read nodes] complex automated QA, anonymized data seeding for QA purposes, and some limits of JavaScript, where for example by default objects in V8 object can have ~8.4mil of fields, but Map can handle way more. Queue system for data processing.

  • GraphQL live demo [currently unavailable]
  • Web Application example of how data can be consumed
    • Web Application live demo [currently unavailable]

software requirements

  • Python v3.11+

used technologies

where to get data-sets

how to install

  • pip install -r requirements.txt

how to run in 'development' mode

  • uvicorn main:app --reload

how to run in 'production' mode

  • gunicorn --worker-class uvicorn.workers.UvicornWorker main:app
    • to run on different port example: PORT=18080 gunicorn --worker-class uvicorn.workers.UvicornWorker main:app

gitflow

  • heroku -> current production, contains production specific changes, trigger production deploment on every push
  • master -> most upto date production ready, all pull requests in to this branch got mandatory check 'ci/circleci: jest'
  • feature branches -> get merged into the master branch when they are ready and mandatory checks passed
  • CI executes tests in an isolated environment

used environment variables

variable default value used as purpose
PORT 8081 number port on which application will be made available
*** *** ***
DB_HOSTNAME 127.0.0.1 string host on which database can be reached
DB_USERNAME root string database user
DB_PASSWORD password string database user's password
DB_PORT 3306 number port on which database can be reached
DB_NAME explore string database [schema] name
DB_DIALECT mysql string database's dialect: one of mysql / sqlite / postgres

supported databases

database version adapter main purpose
MySQL 8 mysql2 production
  • if you use MySQL 5.7+ you need to make sure it can work with mysql native password

  • PostrgeSQL and SQLite are partially supported because some of the queries are not fully engine-agnostic, and some functions do not exist in SQLite for example

explore-sa-python's People

Contributors

anna-liepina avatar eugene-matvejev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.