{"id":19784243,"url":"https://github.com/arieljimenez/pybanca","last_synced_at":"2026-04-11T01:12:17.033Z","repository":{"id":85974356,"uuid":"123850512","full_name":"arieljimenez/pybanca","owner":"arieljimenez","description":"The infrastructure behind the lottery app. ","archived":false,"fork":false,"pushed_at":"2018-03-20T05:09:53.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-11T02:48:55.917Z","etag":null,"topics":["docker-container","elm","japronto","mariadb","python","restful-api","webpack","wsgi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arieljimenez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-05T02:00:35.000Z","updated_at":"2018-10-21T04:15:39.000Z","dependencies_parsed_at":"2023-03-19T07:41:30.915Z","dependency_job_id":null,"html_url":"https://github.com/arieljimenez/pybanca","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arieljimenez%2Fpybanca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arieljimenez%2Fpybanca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arieljimenez%2Fpybanca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arieljimenez%2Fpybanca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arieljimenez","download_url":"https://codeload.github.com/arieljimenez/pybanca/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241117020,"owners_count":19912468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-container","elm","japronto","mariadb","python","restful-api","webpack","wsgi"],"created_at":"2024-11-12T06:10:53.981Z","updated_at":"2026-04-11T01:12:16.996Z","avatar_url":"https://github.com/arieljimenez.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyBanca Infrastructure\n\n\u003eInfraestructure behind the app.\n\n## STACK (wip)\n\n- [Elmlang](http://elm-lang.org/) for the frontend. Runing at port **80**.\n- [Japronto](https://github.com/squeaky-pl/japronto) for the WSGI/API service. Runing at port **8080** proxy-served by port **8000**.\n- SQLAlchemy as ORM.\n- MariaDB as RDBMS. Runing at port **8336**.\n\n## CI\n\n- Jenkins (EDIT: will have his own container)\n- Travis (more research needed)\n\n### Deployment (pipeline perhaps)\n\n- We will have a Docker container with Alpine runing our WSGI python backend.\n- The backend will serve an `index.html` that calls an `index.js` where our **Elm** app lives.\n- First, give the webpack order to compile the elm files and prepare them for production.\n- And later, do the **thing**.\n\n## Environment\n\n- Alpine docker container (with gcc libs)\n- python 3.6.3 \u0026\u0026 2.7.14: needed for webpack 3 plugnins (updating to webpack 4 will solve this)\n- nodejs v8.9.3\n- webpack 3.10.0\n- elm 0.18\n- mariadb\n\n## Dev dependencies\n\n- Linux :^)\n- [Docker](https://github.com/arieljimenez/configx/blob/Elementary/apps/docker.sh)\n- Some visual database modeler, like [MySQL Workbench](https://www.mysql.com/products/workbench/).\n- A text editor: VS Code, Vim, Sublime or Atom. (yes, ordered by likeness).\n- A terminal (_with zsh perhaps?_)\n- Good intentions :)\n\n### TODO\n\n- Config files (thinking in the 12 factor apps).\n- Chosing IaaS: heroku or google.\n  - **Hint:** we cab user heroku as our **staging** and google compute engine as **production**.\n- Do a stress test: lets see if that of **1.2** millons of *request* are true.\n- Update Webpack to 4.\n- Facture the stack in microservices.\n- Research about python watcher.\n\n### Q/A\n\n- **Q:** _Why ignore the package-lock.json?_\n  - this introduces more conflicts and problems than resolve ([ref](https://stackoverflow.com/questions/44297803/package-lock-json-role)).\n- **How to update/deploy a new image?**\n  - `$ docker commit ${CONTAINER_NAME} ${USER}/${DESIRED_IMAGE_NAME}:${DESIRED_TAG}`\n  - `$ docker push ${USER}/${DESIRED_IMAGE_NAME}:${DESIRED_TAG}`\n  - update the init.sh.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farieljimenez%2Fpybanca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farieljimenez%2Fpybanca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farieljimenez%2Fpybanca/lists"}