{"id":21880357,"url":"https://github.com/flacode/my_diary","last_synced_at":"2025-03-22T00:27:54.516Z","repository":{"id":39840654,"uuid":"143733819","full_name":"flacode/my_diary","owner":"flacode","description":"Using Django Rest Framework to create a diary API.","archived":false,"fork":false,"pushed_at":"2022-12-08T02:31:31.000Z","size":79,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T18:46:06.202Z","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/flacode.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":"2018-08-06T13:39:34.000Z","updated_at":"2019-05-01T07:12:12.000Z","dependencies_parsed_at":"2022-09-21T12:43:32.624Z","dependency_job_id":null,"html_url":"https://github.com/flacode/my_diary","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/flacode%2Fmy_diary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flacode%2Fmy_diary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flacode%2Fmy_diary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flacode%2Fmy_diary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flacode","download_url":"https://codeload.github.com/flacode/my_diary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890063,"owners_count":20527026,"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-28T08:42:46.953Z","updated_at":"2025-03-22T00:27:54.493Z","avatar_url":"https://github.com/flacode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyDiary\n[![Maintainability](https://api.codeclimate.com/v1/badges/80c510abc272da1fe69d/maintainability)](https://codeclimate.com/github/flacode/my_diary/maintainability)\n[![Build Status](https://travis-ci.org/flacode/my_diary.svg?branch=develop)](https://travis-ci.org/flacode/my_diary)\n[![Coverage Status](https://coveralls.io/repos/github/flacode/my_diary/badge.svg?branch=develop)](https://coveralls.io/github/flacode/my_diary?branch=develop)\n\n\u003e  MyDiary is an online journal where users can pen down their thoughts and feelings.\n\nMy Diary is an API developed using the Django Rest Framework.\n\n## Supported features.\npass\n\n## Technologies used.\n- Django Rest Framework.\n- Postgres database.\n\n## Getting started.\n### Prerequisites\n1. Install requirements, run\n```sh\n     pip install -r requirements.txt\n```\n2. Database configuration.\n   - Download and install postgres from [here](https://www.postgresql.org/download/)\n   - Create database in terminal\n   ```sh\n      $ psql postgres;\n      $ CREATE DATABASE database_name;\n   ```\n3. Set the required environment variables.\n    - Add a configuration file called `config.txt` where you will set the enviromnent variables.\n        ```export SECRET_KEY='secret key'\n            export DATABASE_URL='postgres://USER:PASSWORD@HOST:PORT/NAME'\n            export EMAIL_HOST='email host'\n            export EMAIL_PORT=465\n            export EMAIL_HOST_USER='email host user'\n            export EMAIL_HOST_PASSWORD='email host '\n            export EMAIL_USE_TLS=True\n        ```\n\n\n   - Set these environment variables using the following command.\n   ```sh\n      $ source ./config.txt\n   ```\n\n3. Switch to the project's root directory and run migrations to create database tables.\n```sh\n    $ python manage.py makemigrations\n    $ python manage.py migrate\n ```\n 4. Then run the application.\n ```sh\n    $ python manage.py runserver\n ```\n\n## Tests\npass\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflacode%2Fmy_diary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflacode%2Fmy_diary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflacode%2Fmy_diary/lists"}