{"id":21835287,"url":"https://github.com/dhi13man/answering-forum-backend","last_synced_at":"2026-04-11T14:01:58.381Z","repository":{"id":147488125,"uuid":"445190270","full_name":"Dhi13man/answering-forum-backend","owner":"Dhi13man","description":"A Node.js Express backend for a Stackoverflow like answering forum, with RESTful endpoints, written in es6 style with linted and comprehensively unit-tested code. Utilizes a local json database using fs but has full separation of concern to implement anything else.","archived":false,"fork":false,"pushed_at":"2022-01-09T06:25:35.000Z","size":713,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T16:27:39.894Z","etag":null,"topics":["babel","backend","backend-api","es6","eslint","express","express-middleware","express-router","filesystem","fs","javascript","jest","json","jwt","model-view-controller","node","node-js","nodejs","rest-api","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Dhi13man.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-01-06T14:03:53.000Z","updated_at":"2022-01-09T06:25:38.000Z","dependencies_parsed_at":"2023-07-24T20:32:21.432Z","dependency_job_id":null,"html_url":"https://github.com/Dhi13man/answering-forum-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dhi13man/answering-forum-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fanswering-forum-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fanswering-forum-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fanswering-forum-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fanswering-forum-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dhi13man","download_url":"https://codeload.github.com/Dhi13man/answering-forum-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dhi13man%2Fanswering-forum-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["babel","backend","backend-api","es6","eslint","express","express-middleware","express-router","filesystem","fs","javascript","jest","json","jwt","model-view-controller","node","node-js","nodejs","rest-api","unit-testing"],"created_at":"2024-11-27T20:19:20.443Z","updated_at":"2026-04-11T14:01:58.377Z","avatar_url":"https://github.com/Dhi13man.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# answering-forum-backend\n\n[![License](https://img.shields.io/github/license/dhi13man/answering-forum-backend)](https://github.com/Dhi13man/answering-forum-backend/blob/main/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors-anon/dhi13man/answering-forum-backend?style=flat)](https://github.com/Dhi13man/answering-forum-backend/graphs/contributors)\n[![GitHub forks](https://img.shields.io/github/forks/dhi13man/answering-forum-backend?style=social)](https://github.com/Dhi13man/answering-forum-backend/network/members)\n[![GitHub Repo stars](https://img.shields.io/github/stars/dhi13man/answering-forum-backend?style=social)](https://github.com/Dhi13man/answering-forum-backend/stargazers)\n[![Last Commit](https://img.shields.io/github/last-commit/dhi13man/answering-forum-backend)](https://github.com/Dhi13man/answering-forum-backend/commits/main)\n[![Node.js CI](https://github.com/Dhi13man/answering-forum-backend/workflows/Node.js%20CI/badge.svg)](https://github.com/Dhi13man/answering-forum-backend/actions)\n\nA Node.js Express backend for a Stackoverflow like answering forum, with RESTful endpoints, written in es6 style with linted and comprehensively unit-tested code. Utilizes a local json database using fs but has full separation of concern to implement anything else.\n\nCreated as a part of week 0 of Swiggy i++ learning programme, round 2.\n\n## Contents\n\n- [answering-forum-backend](#answering-forum-backend)\n  - [Contents](#contents)\n  - [Setup](#setup)\n  - [Usage](#usage)\n    - [Project Structure](#project-structure)\n  - [License](#license)\n  - [Contributing](#contributing)\n  - [Tests](#tests)\n\n## Setup\n\n1. Install [NodeJS](https://nodejs.org/en/) and any NodeJS package manager.\n    - [npm](https://www.npmjs.com/)\n    - [yarn](https://yarnpkg.com/)\n\n2. Run `npm install` or `yarn install` to install the dependencies.\n\n3. Run `npm run build` or `yarn build` once to let babel build the application on ./lib/.\n\n## Usage\n\nRun `npm run start` or `yarn start` after building to run the application on localhost:4000 (default).\n\n### Project Structure\n\nThe project's code structure loosely follows MVC model while maintaing complete seperation of concern.\n\n- answering-forum-backend\n  - src\n    - controllers\n      - login_post.js\n      - answers\n        - answer_post.js\n      - questions\n        - question_get.js\n        - question_post.js\n      - register_post.js\n    - database\n      - answers.json\n      - questions.json\n      - users.json\n    - models\n      - answer_data.js\n      - question_data.js\n      - user_data.js\n    - repositories\n      - answers.js\n      - questions.js\n      - users.js\n    - routes\n      - login.js\n      - question\n        - questionID\n          - answer.js\n          - index.js\n        - index.js\n      - register.js\n    - utils\n      - validators.js\n    - index.js\n  - tests\n    - controllers\n      - answer\n        - answer_post.test.js\n      - question\n        - question_get.test.js\n        - question_post.test.js\n      - login_post.test.js\n      - register_post.test.js\n    - database\n      - answers.test.json\n      - questions.test.json\n      - users.test.json\n    - repositories\n      - answers.test.js\n      - questions.test.js\n      - users.test.js\n  - .eslintrc.yml\n  - babel.config.json\n  - package.json\n  - package-lock.json\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/Dhi13man/answering-forum-backend/blob/main/LICENSE) for details.\n\n## Contributing\n\nFeel free to contribute pull requests, issues for either APIs or tests. See the [CONTRIBUTING.md](https://github.com/Dhi13man/answering-forum-backend/blob/main/CONTRIBUTING.md) for details.\n\n## Tests\n\nRun `npm test` or `yarn test` to run the unit tests. Feel free to add your own tests for better test coverage while contributing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Fanswering-forum-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhi13man%2Fanswering-forum-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhi13man%2Fanswering-forum-backend/lists"}