{"id":22706513,"url":"https://github.com/wendymunyasi/alcohol-tracker-api","last_synced_at":"2025-08-18T20:38:08.402Z","repository":{"id":46838000,"uuid":"279367389","full_name":"wendymunyasi/alcohol-tracker-api","owner":"wendymunyasi","description":"An API for storing client's email address for an Alcohol Tracker app and built using Django Rest Framework. - Website link below.","archived":false,"fork":false,"pushed_at":"2021-09-22T19:32:51.000Z","size":30617,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T21:42:06.344Z","etag":null,"topics":["django3","djangorestframework","python"],"latest_commit_sha":null,"homepage":"https://alcohol-tracker-db-api.herokuapp.com/api/newsletter_recipients2/","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/wendymunyasi.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":"2020-07-13T17:21:29.000Z","updated_at":"2023-04-04T04:39:50.000Z","dependencies_parsed_at":"2022-09-16T23:00:46.780Z","dependency_job_id":null,"html_url":"https://github.com/wendymunyasi/alcohol-tracker-api","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/wendymunyasi%2Falcohol-tracker-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendymunyasi%2Falcohol-tracker-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendymunyasi%2Falcohol-tracker-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wendymunyasi%2Falcohol-tracker-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wendymunyasi","download_url":"https://codeload.github.com/wendymunyasi/alcohol-tracker-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243564,"owners_count":20746307,"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":["django3","djangorestframework","python"],"created_at":"2024-12-10T10:08:54.216Z","updated_at":"2025-03-29T20:43:02.417Z","avatar_url":"https://github.com/wendymunyasi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Alcohol Tracker App API.\nThis is an API for storing client's email address for an Alcohol Tracker app and built using Python and Django Rest Framework.\n\n##  Getting Started\n\n## Links\n\n* **Website link for viewing recipients** - https://alcohol-tracker-db-api.herokuapp.com/api/newsletter_recipients2/\n\n\n###  Prerequisites and Installing\nYou need to install the following software to have the app running on your local machine for development and testing purposes. Instructions on how to install will also be provided next to the software.\n\n\n|Software|Installation Instructions/Terminal Commands|\n|----------|---------------------------|\n|Python3.6|1. sudo apt-get update|\n|  |         2. sudo apt-get install python3.6|\n|Pip|pip install --upgrade pip|\n|Virtual Environment|1. pip install pipenv|\n|   |2. Activate by running: pipenv shell|\n|Django 3.0|pipenv install Django|\n|All other dependencies| pipenv install --dev|\n\n\n###  Running Tests\n\nExamples of tests are given below.\n\n####  NewsLetterRecipientTestCase\n\n    def test_newsletter_recipient_instance(self):\n        self.assertTrue(isinstance(self.new_newsletter_recipient, NewsLetterRecipient))\n\n    The test above tests to see if a newsletter recipient instance was created correctly.\n\n\n    def test_save_newsletter_recipient(self):\n        self.test_newsletter_recipient = NewsLetterRecipient( email=\"damon@gmail.com\")\n        self.test_newsletter_recipient.save()\n        newsletter_recipients = NewsLetterRecipient.objects.all().count()\n        self.assertTrue(newsletter_recipients == 2)\n\n    The test above tests to see if a newsletter recipient was saved correctly.\n\n\n##  Deployment\n\nFollow along with this document (https://gist.github.com/newtonkiragu/42f2500e56d9c2375a087233587eddd0) to deploy your application to Heroku.\n\n##  Built With\n\n*  [Django] - 3.0 (https://docs.djangoproject.com/en/3.0/)\n\n\n##  Authors\n\n* **Wendy Munyasi**\n\n\n##  License\n\nThis project is licensed under the MIT License.\n\n\n## Api Link and description\n\n(https://alcohol-tracker-db-api.herokuapp.com/api/)\n\nOn loading the link above, a 404 page is displayed with the various urls.\nYou can visit any of the two urls apart from admin url.\n\n## Project-Setup Instructions.\n\n1.Open your github account and search for github username: **wendymunyasi**\n\n1. git clone using the following links.\n\n   link: https://github.com/wendymunyasi/BAC-tracker.git\n\n2. For Django app, set the database to your own url then run `python3 manage.py makemigrations` and `python3 manage.py migrate`.\n3. Run the command `python3 manage.py runserver`.\n4. Click the local host link on your terminal  and navigate to the api root. Use the credentials provided to login if asked to do so.\n\n\n## BDD\n\n| Behaviour | Input | Output |\n| ------------------------------ | ------| ------ |\n|On loading the app you see the landing page displaying various email addresses from the database.|None |None|\n\n\n \n## CODEBEAT\n[![codebeat badge](https://codebeat.co/badges/3ef0e830-4679-4852-a4c4-61df30f8b885)](https://codebeat.co/projects/github-com-wendymunyasi-bac-tracker-master)\n\n\n## The following include the list of technologies used:\n\n  *  **Python3.6**\n  *  **Django 3**\n  *  **Bootstrap**\n  *  **PostgreSQL**\n  *  **Django Rest Framework**\n\n\n## Collaborate\n\nTo colloborate, reach me through my email address wendymunyasi@gmail.com.\n\n## Website Landing Page\n\n\u003cimg src=\"./static/images/landing.png\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendymunyasi%2Falcohol-tracker-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwendymunyasi%2Falcohol-tracker-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwendymunyasi%2Falcohol-tracker-api/lists"}