{"id":14989469,"url":"https://github.com/andromedatechnology/habitus-api","last_synced_at":"2025-04-12T00:32:30.524Z","repository":{"id":249782219,"uuid":"373778410","full_name":"AndromedaTechnology/habitus-api","owner":"AndromedaTechnology","description":"🏄 API for Habitus App - State-of-the-art Tracker for emotions, habits and thoughts. | Gamified. | Anonymous and open source.","archived":false,"fork":false,"pushed_at":"2024-07-05T09:01:18.000Z","size":229,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T21:03:25.490Z","etag":null,"topics":["habit-api","habits","habitus","journal","koa","koajs","nodejs","tracker","typescript"],"latest_commit_sha":null,"homepage":"https://habitus.today","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndromedaTechnology.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-04T08:46:20.000Z","updated_at":"2024-12-31T11:49:31.000Z","dependencies_parsed_at":"2024-07-23T10:40:00.011Z","dependency_job_id":null,"html_url":"https://github.com/AndromedaTechnology/habitus-api","commit_stats":null,"previous_names":["andromedatechnology/habitus-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndromedaTechnology%2Fhabitus-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndromedaTechnology%2Fhabitus-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndromedaTechnology%2Fhabitus-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndromedaTechnology%2Fhabitus-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndromedaTechnology","download_url":"https://codeload.github.com/AndromedaTechnology/habitus-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501430,"owners_count":21114674,"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":["habit-api","habits","habitus","journal","koa","koajs","nodejs","tracker","typescript"],"created_at":"2024-09-24T14:18:25.188Z","updated_at":"2025-04-12T00:32:30.230Z","avatar_url":"https://github.com/AndromedaTechnology.png","language":"TypeScript","funding_links":["https://www.patreon.com/moltouni","https://www.buymeacoffee.com/moltouni"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eHabitus API - Healthiest version of you\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://habitus.today\"\u003e\u003cimg src=\"https://habitus.today/img/icons/logo.png\"  alt=\"Habitus Logo\" /\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://habitus.today\"\u003eGamified Tracker and Journal\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://habitus.today\"\u003eEmotions, Habits, Thoughts\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://habitus.today\"\u003e\u003cimg src=\"https://heroku-badge.herokuapp.com/?app=habitus-api\u0026style=flat\u0026svg=1\u0026root=api\"  alt=\"Heroku\" /\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"https://badges.aleen42.com/src/node.svg\" alt=\"Node\" /\u003e\n  \u003cimg src=\"https://badges.aleen42.com/src/typescript.svg\" alt=\"TypeScript\" /\u003e\n  \u003cimg src=\"https://badges.aleen42.com/src/docker.svg\" alt=\"Docker\" /\u003e\n  \u003cimg src=\"https://badges.aleen42.com/src/jest_1.svg\" alt=\"Jest\" /\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://medium.com/@habitus.today\"\u003e\u003cimg src=\"https://badges.aleen42.com/src/medium.svg\" alt=\"Medium\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/HabitusToday\"\u003e\u003cimg src=\"https://badges.aleen42.com/src/twitter.svg\" alt=\"Twitter\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.patreon.com/moltouni\"\u003e\u003cimg src=\"https://badges.aleen42.com/src/patreon.svg\" alt=\"Patreon\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/moltouni\"\u003e\u003cimg src=\"https://badges.aleen42.com/src/buymeacoffee.svg\" alt=\"Buymeacoffee\" /\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\nAPI for [**Habitus App**](https://habitus.today) [[Github - Frontend](https://github.com/AndromedaTechnology/habitus)].\n\n```\nHabitus App is Unobtrusive and Easy to use Habit tracker.\n\nAnonymous and Open-Source.\n```\n\n# 1. Technology\n\n- TypeScript\n- Koa.js\n- Database: MongoDB: Mongoose\n- Config: Dotenv, Joi\n- Testing: Jest: SuperTest, MongoDBMemoryServer\n- Docker: MongoDB\n\n# 2. Features\n\n- 🥰 Emotion CRUD\n- 💪 Habit CRUD\n- 🆕 🏷 Tag CRUD\n- 🔐 JWT auth for Admin actions\n\n# 3. Run\n\n**Docker**\n\nRuns `MongoDB` container.\n\n```\ncd docker\ncp .env.example .env\ndocker-compose up -d\n```\n\n**Application**\n\n```\n# Return to root\ncd ..\ncp .env.example .env\nnpm i\nnpm run dev\n```\n\n# 4. Tests\n\nUsing `Jest` Testing Framework.\n\nJest uses `SuperTest` and `MongoDBMemoryServer`.\n\n```\nnpm run test\n```\n\n# 5. Postman\n\nCheck out [Postman Documentation](https://documenter.getpostman.com/view/97483/TzY4faNK).\n\nPre-set environment variables:\n\n- `host`\n- `admin_password`\n\nDynamic environment variables,\nautomatically set in tests:\n\n- `access_token`\n- `habit_id`\n\n# 6. Protected Routes [Admin access]\n\nFew routes are protected with `jwtCheck` middleware.\n\nRequests going to these routes require `Authorization: Bearer {token}` header.\n\n**Protected Routes**\n\n- [Emotion,Habit][create,update,delete]\n\n**Getting access token**\n\nEndpoint: `POST /auth/token`.\n\nBody: `{ password: ADMIN_PASSWORD }`.\n\n**Admin password**\n\n`ADMIN_PASSWORD` is defined in `.env` file.\n\nIt defaults to `secret`.\n\n# 7. Habitus Frontend\n\nWritten in `TypeScript`,\n\nusing `Vue.js` and `Vuetify`.\n\n**Join the open-source development - [Github - Habitus App - Frontend](https://github.com/AndromedaTechnology/habitus)**.\n\nCheck the live version at [habitus.today](https://habitus.today).\n\n## 7. 1. Frontend preview\n\n![User page](https://i.imgur.com/v8HgZjy.png)\n\n[Check the gallery](https://imgur.com/gallery/9X7WC6U).\n\n# 8. Social\n\nHabitus\n\n- [Medium](https://medium.com/@habitus.today)\n- [Twitter](https://twitter.com/HabitusToday)\n\n\u003cbr/\u003e\n\u003ch5 align=\"center\"\u003e\n  \u003ca href=\"https://startedincroatia.com\"\u003eStarted in Europe, Croatia 🇭🇷\u003c/a\u003e\n\u003c/h5\u003e\n\n\u003ch3 align=\"center\"\u003e\n  Crafted with ❤️ \u003cbr /\u003e\n  by contributors around the 🌍 World and \u003ca href=\"https://andromeda.technology/\"\u003e🌌 Andromeda\u003c/a\u003e.\n\u003c/h3\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandromedatechnology%2Fhabitus-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandromedatechnology%2Fhabitus-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandromedatechnology%2Fhabitus-api/lists"}