{"id":20416623,"url":"https://github.com/codebam/avrod_python_login","last_synced_at":"2025-03-05T03:43:50.263Z","repository":{"id":46856370,"uuid":"219830802","full_name":"codebam/avrod_python_login","owner":"codebam","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T03:28:38.000Z","size":2292,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T13:58:26.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/codebam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-05T19:11:27.000Z","updated_at":"2020-04-15T16:09:52.000Z","dependencies_parsed_at":"2023-01-24T08:15:12.967Z","dependency_job_id":null,"html_url":"https://github.com/codebam/avrod_python_login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Favrod_python_login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Favrod_python_login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Favrod_python_login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Favrod_python_login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebam","download_url":"https://codeload.github.com/codebam/avrod_python_login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241960836,"owners_count":20049342,"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":[],"created_at":"2024-11-15T06:21:17.407Z","updated_at":"2025-03-05T03:43:50.246Z","avatar_url":"https://github.com/codebam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# avrod ecommerce website\n\n### Requirements\n* latest version of Python and Postgres\n### Setup Steps\n1. Clone this repository\n2. Run a virtual environment with the command `pipenv shell`\n3. Install dependencies with command `pip install`\n4. Create a postgres database with information listed in DATABASES in settings.py\n    - source/app/conf/development/settings.py\n5. Run the local server using command `python source/manage.py runserver`\n6. Create a [Stripe](https://stripe.com/en-ca) account and update the Stripe keys in settings.py\n7. Change any other secret keys as needed\n\n### Explanation of Apps\n#### Accounts\n- Cloned from: https://github.com/egorsmkv/simple-django-login-and-register and updated for our specifications\n- Contains everything for managing user accounts\n- Templates folder:  contains all the html pages for account management, as well as email templates\n- Users are required to activate their accounts before accessing the website. When the website is setup locally with no way of sending emails you must manually change their 'is_active' value to true in the database with `update auth_user set is_active = 't' where username = '[account username]'`\n\n#### App\n- Contains the website settings in the conf folder under development or production. Right now all the current settings are defined in the development settings.py folder\n- Has top level url paths in urls.py\n\n#### Content\n- This isn't really an app, it contains all static files being used within the project such as css files, javascript, images, and html layout templates\n\n#### Main\n- Contains the code for the index and change language pages in views.py\n\n#### Payment\n- Contains all code that manages payment in the website\n- templates folder contains all html page templates\n- admin.py contains code required to access payment model objects through the admin portal of the website (\u003csite url\u003e/admin)\n- keygen.py contains code required to generate license keys when the user signs up for a subscription\n\n##### Webhook Receiver\n- Stripe has [instructions](https://stripe.com/docs/stripe-cli) on how to test a locally running web site using Stripe CLI\n    - The endpoint_secret in `source/payment/views.py` immediately above the webhook receiver function towards the bottom of the file needs to be changed to the one the Stripe CLI gives you\n- When the website is publicly accessible through the internet, webhooks can be tested through the Stripe dashboard following [these instructions](https://stripe.com/docs/webhooks/test#dashboard)\n- Currently the only events being handled are checkout.session.completed and customer.subscription.deleted\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebam%2Favrod_python_login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebam%2Favrod_python_login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebam%2Favrod_python_login/lists"}