{"id":18413140,"url":"https://github.com/pybites/python_tips","last_synced_at":"2025-04-07T11:32:19.618Z","repository":{"id":41948140,"uuid":"173494325","full_name":"pybites/python_tips","owner":"pybites","description":"API for our Python tips, built with Django REST Framework ","archived":false,"fork":false,"pushed_at":"2025-01-14T22:31:42.000Z","size":64,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T17:11:30.528Z","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/pybites.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":"2019-03-02T20:14:17.000Z","updated_at":"2024-10-29T16:18:37.000Z","dependencies_parsed_at":"2024-02-08T12:26:18.629Z","dependency_job_id":"b948ebf1-193f-4fbf-bd24-c4f1fd888937","html_url":"https://github.com/pybites/python_tips","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/pybites%2Fpython_tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpython_tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpython_tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fpython_tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pybites","download_url":"https://codeload.github.com/pybites/python_tips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247644654,"owners_count":20972334,"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-06T03:44:56.182Z","updated_at":"2025-04-07T11:32:19.177Z","avatar_url":"https://github.com/pybites.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyBites Tips API\n\n## Part of the 100 Days of web with Python Talk Python Course\n\nHere are the instructions to set this API up locally.\n\nIf you want to automate below in one step, you can use the included `Makefile`. In that case you can just run `make setup \u0026\u0026 make run` and you should be good to go.\n\nTo do this setup manually go through these steps:\n\n1. Make a virtual environment: `python -m venv venv`.\n\n2. Activate the virtual environment: `source venv/bin/activate`.\n\n3. Install the (base) requirements: `pip install -r requirements.txt`.\n\n4. Set `SECRET_KEY` and `DEBUG` in the `venv/bin/activate` script and run it again so these variables are available.\n\n5. Run the migrations: `python manage.py migrate`.\n\n6. Create a pybites superuser with password 'changeme':\n\n```\necho \"from django.contrib.auth.models import User; User.objects.create_superuser('pybites', 'pybites@example.com', 'changeme')\" | python manage.py shell\n```\n\n7. Import the tips data: `python manage.py sync_tips`.\n\n8. Run the webserver: `python manage.py runserver`.\n\n---\n\nBrowse to [http://localhost:8000/api/](http://localhost:8000/api/) - enjoy!\n\n---\n\nThis API was initially linked to: [Building a Python Tips API with Django REST Framework and Deploying it to Digital Ocean](https://pybit.es/django-rest-tips-api-digital-ocean.html) - leaving this here just in case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fpython_tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpybites%2Fpython_tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fpython_tips/lists"}