{"id":21434239,"url":"https://github.com/candh/inquiry-app","last_synced_at":"2026-04-05T22:34:31.886Z","repository":{"id":39005030,"uuid":"233670615","full_name":"candh/inquiry-app","owner":"candh","description":"inquiry. A Q/A site I made for my web semester project. MERN Stack app. ","archived":false,"fork":false,"pushed_at":"2023-01-07T05:21:10.000Z","size":1504,"stargazers_count":0,"open_issues_count":23,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T09:11:23.331Z","etag":null,"topics":["express","javscript","mern-stack","nodejs","react-router","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/candh.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-01-13T19:00:54.000Z","updated_at":"2021-02-14T20:06:10.000Z","dependencies_parsed_at":"2023-02-06T12:45:58.516Z","dependency_job_id":null,"html_url":"https://github.com/candh/inquiry-app","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/candh%2Finquiry-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Finquiry-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Finquiry-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candh%2Finquiry-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candh","download_url":"https://codeload.github.com/candh/inquiry-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945529,"owners_count":20372894,"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":["express","javscript","mern-stack","nodejs","react-router","reactjs"],"created_at":"2024-11-22T23:34:13.225Z","updated_at":"2026-04-05T22:34:26.841Z","avatar_url":"https://github.com/candh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [inquiry](http://inquiry-app.herokuapp.com)\n\nA concept questions and answer website. For my semester project.\n\n# Try\n\n[http://inquiry-app.herokuapp.com](http://inquiry-app.herokuapp.com)\n\n![Screenshot](https://i.postimg.cc/C5NHsTd2/Screen-Shot-2020-01-13-at-11-26-11-PM.png)\n\n# Functionalties\n\n- User registration / Login\n- User can ask questions\n- User can edit own questions\n- User can delete own questions\n- User can answer questions\n- User can edit answers\n- User can delete own answer\n- User can post comments on both questions and answers\n- User can search questions\n- Questions have tags\n- Questions have categories\n- Questions can have points\n- Notifications when someone answers your questions or posts a comment\n- Answers can have points\n- Homepage shows questions with most points that day\n- Reputation system not included (i think, atleast thats the plan for now)\n\n# API Routes\n\nBeware, some routes may be missing.\nBased mostly on this [https://api.stackexchange.com/docs/](https://api.stackexchange.com/docs/)\nalso [https://stackoverflow.com/questions/638868/getting-out-of-crud](https://stackoverflow.com/questions/638868/getting-out-of-crud)\n\n## Question\n\n### Create\n\n| Method | Path                        | Description                                           |\n| ------ | --------------------------- | ----------------------------------------------------- |\n| POST   | /api/questions              | Creates question (associated with the logged in user) |\n| POST   | /api/questions/comments/:id | Creates comment on the question with the :id          |\n\n### Read\n\n| Method | Path                                                               | Description                                                    |\n| ------ | ------------------------------------------------------------------ | -------------------------------------------------------------- |\n| GET    | /api/questions                                                     | Get all questions                                              |\n| GET    | /api/questions/:id                                                 | Get one question                                               |\n| GET    | /api/questions?limit=25\u0026offset=50                                  | Limit returned questions to 25 and skip the first 50 questions |\n| GET    | /api/questions?sort=votes\\|views\\|creation?order=asc\\|desc         | Sort on parameter                                              |\n| GET    | /api/questions?fromdate=ISO8601DateString\u0026todate=ISO8601DateString | Bracket by date                                                |\n\n### Update\n\n| Method | Path               | Description                   |\n| ------ | ------------------ | ----------------------------- |\n| PUT    | /api/questions/:id | updates the question (oh boy) |\n\n### Delete\n\n| Method | Path                              | Description                              |\n| ------ | --------------------------------- | ---------------------------------------- |\n| DELETE | /api/questions/:id                | Deletes the question :id                 |\n| DELETE | /api/questions/:qid/comments/:cid | Delete comment :cid on the question :qid |\n\n### Misc\n\n| Method | Path                              | Description                 |\n| ------ | --------------------------------- | --------------------------- |\n| POST   | /api/questions/upvote/:id/        | Upvotes question :id        |\n| POST   | /api/questions/undo/upvote/:id    | Undo Upvotes question :id   |\n| POST   | /api/questions/downvote/:id       | Downvote question :id       |\n| POST   | /api/questions/downvote/undo/:id/ | Undo Downvotes question :id |\n\n## User\n\n| Method | Path                     | Description              |\n| ------ | ------------------------ | ------------------------ |\n| POST   | /api/users/register      | Registers users          |\n| POST   | /api/users/login         | Login users (Issues JWT) |\n| DELETE | /api/users/              | Delete user              |\n| PUT    | /api/users/:id           | Update user :id          |\n| GET    | /api/users/checkUsername | Checks username          |\n\n## Answer\n\n### Create\n\n| Method | Path              | Description              |\n| ------ | ----------------- | ------------------------ |\n| POST   | /api/answers/:qid | Answer the question :qid |\n\n### Update\n\n| Method | Path             | Description                 |\n| ------ | ---------------- | --------------------------- |\n| PUT    | /api/answers/:id | updates the answer (oh boy) |\n\n### Upvotes\n\n| Method | Path                            | Description               |\n| ------ | ------------------------------- | ------------------------- |\n| POST   | /api/answers/upvote/:id/        | Upvotes answer :id        |\n| POST   | /api/answers/undo/upvote/:id    | Undo Upvotes answer :id   |\n| POST   | /api/answers/downvote/:id       | Downvote answer :id       |\n| POST   | /api/answers/downvote/undo/:id/ | Undo Downvotes answer :id |\n\n### Comments\n\n| Method | Path                            | Description                            |\n| ------ | ------------------------------- | -------------------------------------- |\n| POST   | /api/answers/comments/:id       | Creates comment on the answer :id      |\n| DELETE | /api/answers/:aid/comments/:cid | Delete comment :cid on the answer :aid |\n\n## Comments\n\n| Method | Path                     | Description                     |\n| ------ | ------------------------ | ------------------------------- |\n| POST   | /api/comments/upvote/:id | Upvotes comment on the post :id |\n\n## Edits\n\n| Method | Path                           | Description                                 |\n| ------ | ------------------------------ | ------------------------------------------- |\n| POST   | api/questions/edit/approve/:id | Approved edit with the delta (revision) :id |\n| POST   | api/answers/edit/approve/:id   | Approved edit with the delta (revision) :id |\n\n## Search\n\n| Method | Path                                                 | Description                                                        |\n| ------ | ---------------------------------------------------- | ------------------------------------------------------------------ |\n| GET    | /api/search/:query                                   | Search **everything**                                              |\n| GET    | /api/search/:query?sort=votes\\|views\\|oldest\\|newest | Search **everything** with sort parameter                          |\n| GET    | /api/search/:query?limit=25\u0026offset=50                | Limit returned **questions** to 25 and skip the first 50 questions |\n\n# Notes about the Client\n\n- React client needs some work\n- It was put together in a couple of days just before submission date\n- Its not fully finished yet\n- Might work on it later\n- Style over substance\n\n# Thanks to\n\n- MongoDB Atlas for free cluster\n- Heroku for hosting\n- The entire open source community. Without their code, none of this would be possible.\n\n# By\n\nHaider Ali Khichi\n@candhforlife\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Finquiry-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandh%2Finquiry-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandh%2Finquiry-app/lists"}