{"id":22372208,"url":"https://github.com/keidsid/dicoding-forum-api","last_synced_at":"2026-02-26T06:54:45.616Z","repository":{"id":174921965,"uuid":"651548099","full_name":"KeidsID/dicoding-forum-api","owner":"KeidsID","description":"Back-End Expert project assignment from dicoding.com","archived":false,"fork":false,"pushed_at":"2023-11-15T06:43:33.000Z","size":434,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-15T07:35:13.621Z","etag":null,"topics":["ci-cd","dicoding-submission","hapi-js","jest","node-js","postgre-sql"],"latest_commit_sha":null,"homepage":"https://docs.page/KeidsID/dicoding-forum-api","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/KeidsID.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-06-09T13:37:31.000Z","updated_at":"2023-11-13T12:23:55.000Z","dependencies_parsed_at":"2023-11-15T07:44:00.583Z","dependency_job_id":null,"html_url":"https://github.com/KeidsID/dicoding-forum-api","commit_stats":null,"previous_names":["keidsid/dicoding-back-end-expert","keidsid/dicoding-forum-api"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeidsID%2Fdicoding-forum-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeidsID%2Fdicoding-forum-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeidsID%2Fdicoding-forum-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeidsID%2Fdicoding-forum-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeidsID","download_url":"https://codeload.github.com/KeidsID/dicoding-forum-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228188777,"owners_count":17882518,"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":["ci-cd","dicoding-submission","hapi-js","jest","node-js","postgre-sql"],"created_at":"2024-12-04T20:34:11.045Z","updated_at":"2026-02-26T06:54:40.584Z","avatar_url":"https://github.com/KeidsID.png","language":"TypeScript","readme":"[class-link]: https://www.dicoding.com/academies/276\n[pm-v1]:\n  https://github.com/dicodingacademy/a276-backend-expert-labs/raw/099-shared-content/shared-content/03-submission-content/01-Forum-API-V1/Forum%20API%20V1%20Test.zip\n[pm-v2]:\n  https://github.com/dicodingacademy/a276-backend-expert-labs/raw/099-shared-content/shared-content/03-submission-content/02-Forum-API-V2/Forum%20API%20V2%20Test.zip\n\n# dicoding-forum-api\n\n[![CI - Test](https://github.com/KeidsID/dicoding-forum-api/actions/workflows/ci-test.yml/badge.svg)](https://github.com/KeidsID/dicoding-forum-api/actions/workflows/ci-test.yml)\n[![codecov](https://codecov.io/gh/KeidsID/dicoding-forum-api/branch/main/graph/badge.svg?token=J44SKMPO19)](https://codecov.io/gh/KeidsID/dicoding-forum-api)\n\nBack-End Expert project assignment from [dicoding.com][class-link]. With this\nassignment, students are expected to be able to create a back-end application in\nthe form of a RESTful API that is testable, scalable, reliable, agile, easy and\nfast to deploy, and has reliable security by industry standards.\n\n## Features\n\n- [x] User Registration.\n- [x] Login and Logout.\n- [x] Adding Threads.\n- [x] Viewing Threads.\n- [x] Adding and Deleting Thread Comments.\n- [x] Adding and Deleting Replies to Thread Comments.\n- [x] Like and Dislike Comment.\n\n## Unit tests from Dicoding\n\nNOTE: Deprecated since v1.2.2, use internal tests instead.\n\n- [Forum API V1 Postman Collection + Environment Test][pm-v1].\n- [Forum API V2 Postman Collection + Environment Test][pm-v2].\n\n## Project Setup\n\n1. Add `.env` to the project root with the configuration below:\n\n   ```sh\n   # Server config\n   HOST=\u003cyour server host\u003e\n   PORT=\u003cdesired port for nodejs\u003e\n\n   # PostgreSQL config\n   PGHOST=\u003cpsql server host\u003e\n   PGPORT=\u003cpsql server port\u003e\n   PGUSER=\u003cpsql user\u003e\n   PGPASSWORD=\u003cpsql password\u003e\n   PGDATABASE=\u003cdesired database\u003e\n\n   # PostgreSQL config for testing\n   PGHOST_TEST=\u003cpsql server host\u003e\n   PGPORT_TEST=\u003cpsql server port\u003e\n   PGUSER_TEST=\u003cpsql user\u003e\n   PGPASSWORD_TEST=\u003cpsql password\u003e\n   PGDATABASE_TEST=\u003cdesired database\u003e\n\n   # JWT config\n   ACCESS_TOKEN_KEY=\u003crandom string\u003e\n   REFRESH_TOKEN_KEY=\u003crandom string\u003e\n   ACCESS_TOKEN_AGE=\u003cduration in ms\u003e\n   ```\n\n2. Add `test.json` to the `config/db` folder with the test config from `.env`.\n\n   ```json\n   {\n     \"host\": \"PGHOST_TEST\",\n     \"port\": \"PGPORT_TEST\",\n     \"user\": \"PGUSER_TEST\",\n     \"password\": \"PGPASSWORD_TEST\",\n     \"database\": \"PGDATABASE_TEST\"\n   }\n   ```\n\n3. Run the commands below to install dependencies and setup the database:\n   ```sh\n   npm install\n   npm run pgm up\n   npm run pgm:test up\n   ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeidsid%2Fdicoding-forum-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeidsid%2Fdicoding-forum-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeidsid%2Fdicoding-forum-api/lists"}