{"id":46131544,"url":"https://github.com/bdist/bank-web-app","last_synced_at":"2026-03-02T03:39:56.951Z","repository":{"id":173702828,"uuid":"646509258","full_name":"bdist/bank-web-app","owner":"bdist","description":"Flask Web App for bank.sql","archived":false,"fork":false,"pushed_at":"2025-12-02T17:18:12.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-04T11:24:12.060Z","etag":null,"topics":["app","flask","python","web"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-28T16:16:39.000Z","updated_at":"2025-12-02T17:18:11.000Z","dependencies_parsed_at":"2023-10-11T19:08:05.096Z","dependency_job_id":"a98f6150-5375-4418-aca4-60734b3dfb70","html_url":"https://github.com/bdist/bank-web-app","commit_stats":null,"previous_names":["bdist/db-bankapp","bdist/bankapp","bdist/bank-web-app"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bdist/bank-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdist%2Fbank-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdist%2Fbank-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdist%2Fbank-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdist%2Fbank-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdist","download_url":"https://codeload.github.com/bdist/bank-web-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdist%2Fbank-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29992072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["app","flask","python","web"],"created_at":"2026-03-02T03:39:56.388Z","updated_at":"2026-03-02T03:39:56.945Z","avatar_url":"https://github.com/bdist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Web app\n\n## Deploy on Fly.io (Optional)\n\n1. [Signup to Fly.io](https://fly.io/app/sign-up/)\n\n2. Install the [Fly.io CLI](https://fly.io/docs/hands-on/install-flyctl/)\n\n3. Create App `appname` from the CLI\n\n   ```bash\n   flyctl apps create appname\n   ```\n\n4. Notice that Fly.io wants most files to be at the root of the repository (e.g., fly.toml, Dockerfile, etc.)\n\n5. Before our first deploy we need to set a couple of standard environment variables:\n\n   ```bash\n   flyctl secrets set FLASK_APP=app\n   ```\n\n   ```bash\n   flyctl secrets set FLASK_DEBUG=0\n   ```\n\n   ```bash\n   flyctl secrets set FLASK_ENV=production\n   ```\n\n   Generate your app's unique secret key\n\n   ```bash\n   python3 -c 'import secrets; print(secrets.token_hex())'\n   ```\n\n   Set the environment variable\n\n   ```bash\n   flyctl secrets set FLASK_SECRET_KEY='your_key_from_the_previous_step'\n   ```\n\n   ```bash\n   flyctl secrets set WEB_CONCURRENCY=2\n   ```\n\n6. We will set the `DATABASE_URL` to use the database from Tecnico. Note that you need to replace `istxxxxxx` and `pgpass` using your information.\n\n   ```bash\n   flyctl secrets set DATABASE_URL='postgres://istxxxxxx:pgpass@db.tecnico.ulisboa.pt/istxxxxxx'\n   ```\n\n7. Are you ready for our first deploy?\n\n   ```bash\n   flyctl deploy\n   ```\n\n   Take notice of the output of the previous command. It should tell you whether the app was sucessfuly deployed or not. Congratulations!\n\n8. Open the `appname` index page at \u003chttps://appname.fly.dev/\u003e\n\n## Deploy on Heroku (Optional)\n\n1. [Signup to Heroku](https://signup.heroku.com/)\n\n2. Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#install-the-heroku-cli)\n\n3. Create App `appname` from the CLI\n\n   ```bash\n   heroku create appname\n   ```\n\n4. Heroku wants your app to reside standalone in a Git repository.\n   Create a new private repository to hold your app on Github.com and push your app there.\n   Notice that Heroku wants most files to be at the root of the repository (e.g., Procfile, .python-version, etc.)\n\n5. Add a new git remote to your app repository using the `Heroku CLI`. This remote `heroku` is the one you will push to whennever you want to deploy the app to Heroku.\n\n   ```bash\n   heroku git:remote -a appname\n   ```\n\n   If the command is successful you will be able to ommit the `-a appname` part since `heroku` uses this information.\n\n   Before our first deploy we need to set a couple of standard environment variables:\n\n   ```bash\n   heroku config:set FLASK_APP=app\n   ```\n\n   ```bash\n   heroku config:set FLASK_DEBUG=0\n   ```\n\n   ```bash\n   heroku config:set FLASK_ENV=production\n   ```\n\n   Generate your app's unique secret key\n\n   ```bash\n   python3 -c 'import secrets; print(secrets.token_hex())'\n   ```\n\n   Set the environment variable\n\n   ```bash\n   heroku config:set FLASK_SECRET_KEY='your_key_from_the_previous_step'\n   ```\n\n   ```bash\n   heroku config:set WEB_CONCURRENCY=2\n   ```\n\n6. We will set the `DATABASE_URL` to use the database from Tecnico. Note that you need to replace `istxxxxxx` and `pgpass` using your information.\n\n   ```bash\n   heroku config:set DATABASE_URL='postgres://istxxxxxx:pgpass@db.tecnico.ulisboa.pt/istxxxxxx'\n   ```\n\n7. Are you ready for our first deploy?\n\n   ```bash\n   git push heroku main\n   ```\n\n   Take notice of the output of the previous command. It should tell you whether the app was sucessfuly deployed or not. Congratulations!\n\n8. Open the `appname` index page at \u003chttps://appname.herokuapps.com/\u003e\n\n## Credits\n\nFlavio Martins\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdist%2Fbank-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdist%2Fbank-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdist%2Fbank-web-app/lists"}