{"id":18413174,"url":"https://github.com/pybites/codetips","last_synced_at":"2025-04-07T11:32:20.628Z","repository":{"id":24953282,"uuid":"102850915","full_name":"pybites/codetips","owner":"pybites","description":"Little toy project to learn Django Rest Framework (PCC34)","archived":false,"fork":false,"pushed_at":"2022-12-08T00:35:52.000Z","size":23,"stargazers_count":2,"open_issues_count":7,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T17:11:29.490Z","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}},"created_at":"2017-09-08T10:42:04.000Z","updated_at":"2020-06-06T05:16:41.000Z","dependencies_parsed_at":"2023-01-14T01:52:56.645Z","dependency_job_id":null,"html_url":"https://github.com/pybites/codetips","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%2Fcodetips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fcodetips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fcodetips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybites%2Fcodetips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pybites","download_url":"https://codeload.github.com/pybites/codetips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247644672,"owners_count":20972338,"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:45:03.589Z","updated_at":"2025-04-07T11:32:20.328Z","avatar_url":"https://github.com/pybites.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PCC 34 - DRF\n\n[![BCH compliance](https://bettercodehub.com/edge/badge/pybites/codetips?branch=master)](https://bettercodehub.com/)\n\nA simple API to add coding tips, inspired by @python_tip and following DRF's awesome tutorial (part 1 - 4)\n\nTo run it locally:\n\n\tgit clone https://github.com/pybites/codetips\n\tcd codetips\n\tpython3 -m venv venv \n\techo 'export DJANGO_ENV=local' \u003e\u003e venv/bin/activate\n\techo 'export SECRET_KEY=some-random-string' \u003e\u003e venv/bin/activate\n\tsource venv/bin/activate\n\tpip install -r requirements.txt\n\tpython manage.py migrate\n\tpython manage.py createsuperuser\n\tpython manage.py runserver\n\nGo to `http://127.0.0.1:8000/tips/` in the browser and add some code tips using the user you just created.\n\nOr use [Postman](https://www.getpostman.com/).\n\nOr use `httpie` (included in requirements) from command line:\n\n\thttp -a guest:handl3bar POST http://127.0.0.1:8000/tips/ tip=\"How to code in Python? \u003e\u003e\u003e python -c 'import this'\" (defaults to language=python)\n\thttp -a guest:handl3bar POST http://127.0.0.1:8000/tips/ language=\"javascript\" tip=\"alert('most boring codetip');\"\n\thttp -a guest:handl3bar POST http://127.0.0.1:8000/tips/ language=\"javascript2\" tip=\"alert('most boring codetip');\" (errors: wrong lang / no dup tip!)\n\nRetrieve tips:\n\n\thttp http://127.0.0.1:8000/tips/\n\thttp http://127.0.0.1:8000/tips/1/\n\thttp http://127.0.0.1:8000/users/\n\thttp http://127.0.0.1:8000/users/1/\n\nTODO: get it running on Heroku ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fcodetips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpybites%2Fcodetips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybites%2Fcodetips/lists"}