{"id":28974846,"url":"https://github.com/plcoster/fcc_qa_project2","last_synced_at":"2026-04-28T15:40:23.080Z","repository":{"id":299016095,"uuid":"532416739","full_name":"PLCoster/fcc_qa_project2","owner":"PLCoster","description":"FreeCodeCamp Quality Assurance Project 2: Issue Tracker","archived":false,"fork":false,"pushed_at":"2022-09-06T17:43:42.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T12:16:52.509Z","etag":null,"topics":["express","mocha-chai"],"latest_commit_sha":null,"homepage":"https://fcc-qa-project2.plcoster.repl.co/","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/PLCoster.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-04T02:09:22.000Z","updated_at":"2022-09-07T18:00:17.000Z","dependencies_parsed_at":"2025-06-14T06:33:02.060Z","dependency_job_id":"a658236b-2b73-4eea-ba97-bdb4be29a540","html_url":"https://github.com/PLCoster/fcc_qa_project2","commit_stats":null,"previous_names":["plcoster/fcc_qa_project2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PLCoster/fcc_qa_project2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PLCoster%2Ffcc_qa_project2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PLCoster%2Ffcc_qa_project2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PLCoster%2Ffcc_qa_project2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PLCoster%2Ffcc_qa_project2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PLCoster","download_url":"https://codeload.github.com/PLCoster/fcc_qa_project2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PLCoster%2Ffcc_qa_project2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32387916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: 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":["express","mocha-chai"],"created_at":"2025-06-24T12:07:08.858Z","updated_at":"2026-04-28T15:40:18.071Z","avatar_url":"https://github.com/PLCoster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Free Code Camp: Quality Assurance Project 2 - Issue Tracker\n\n## Issue Tracker\n\nThe aim of this project was to build a small web app with functionality similar to: https://issue-tracker.freecodecamp.rocks\n\nThe project was built using the following technologies:\n\n- **HTML**\n- **JavaScript** with **[Node.js](https://nodejs.org/en/) / [NPM](https://www.npmjs.com/)** for package management.\n- **[Express](https://expressjs.com/)** web framework to build the web API.\n- **[mongodb](https://www.npmjs.com/package/mongodb)** for interacting with a **[MongoDB Atlas](https://www.mongodb.com/atlas/database)** database.\n- **[Bootstrap](https://getbootstrap.com/)** for styling with some custom **CSS**.\n- **[FontAwesome](https://fontawesome.com/)** for icons.\n- **[Mocha](https://mochajs.org/)** test framework with **[Chai](https://www.chaijs.com/)** assertions for testing.\n- **[nodemon](https://nodemon.io/)** for automatic restarting of server during development.\n\n### Project Requirements:\n\n- **User Story #1:** You can send a `POST` request to `/api/issues/{projectname}` with form data containing the required fields `issue_title`, `issue_text`, `created_by`, and optionally `assigned_to` and `status_text`.\n\n- **User Story #2:** The `POST` request to `/api/issues/{projectname}` will return the created object, and must include all of the submitted fields. Excluded optional fields will be returned as empty strings. Additionally, include `created_on` (date/time), `updated_on` (date/time), `open` (boolean, true for open - default value, false for closed), and `_id`.\n\n- **User Story #3:** If you send a `POST` request to `/api/issues/{projectname}` without the required fields, returned will be the error `{ error: 'required field(s) missing' }`\n\n- **User Story #4:** You can send a `GET` request to `/api/issues/{projectname}` for an array of all issues for that specific `projectname`, with all the fields present for each issue.\n\n- **User Story #5:** You can send a `GET` request to `/api/issues/{projectname}` and filter the request by also passing along any field and value as a URL query (ie. `/api/issues/{project}?open=false`). You can pass one or more field/value pairs at once.\n\n- **User Story #6:** You can send a `PUT` request to `/api/issues/{projectname}` with an `_id` and one or more fields to update. On success, the `updated_on` field should be updated, and returned should be `{ result: 'successfully updated', '_id': _id }`.\n\n- **User Story #7:** When the `PUT` request sent to `/api/issues/{projectname}` does not include an `_id`, the return value is `{ error: 'missing _id' }`.\n\n- **User Story #8:** When the `PUT` request sent to `/api/issues/{projectname}` does not include update fields, the return value is `{ error: 'no update field(s) sent', '_id': _id }`. On any other error, the return value is `{ error: 'could not update', '_id': _id }`.\n\n- **User Story #9:** You can send a `DELETE` request to `/api/issues/{projectname}` with an `_id` to delete an issue. If no `_id` is sent, the return value is `{ error: 'missing _id' }`. On success, the return value is `{ result: 'successfully deleted', '_id': _id }`. On failure, the return value is `{ error: 'could not delete', '_id': _id }`.\n\n- ## **User Story #10:** All 14 of the following functional tests are complete and passing for the `/api/issues/{projectname}` routes:\n  - Create an issue with every field: `POST` request to `/api/issues/{project}`\n  - Create an issue with only required fields: `POST` request to `/api/issues/{project}`\n  - Create an issue with missing required fields: `POST` request to `/api/issues/{project}`\n  - View issues on a project: `GET` request to `/api/issues/{project}`\n  - View issues on a project with one filter: `GET` request to `/api/issues/{project}`\n  - View issues on a project with multiple filters: `GET` request to `/api/issues/{project}`\n  - Update one field on an issue: `PUT` request to `/api/issues/{project}`\n  - Update multiple fields on an issue: `PUT` request to `/api/issues/{project}`\n  - Update an issue with missing `_id`: `PUT` request to `/api/issues/{project}`\n  - Update an issue with no fields to update: `PUT` request to `/api/issues/{project}`\n  - Update an issue with an invalid `_id`: `PUT` request to `/api/issues/{project}`\n  - Delete an issue: `DELETE` request to `/api/issues/{project}`\n  - Delete an issue with an invalid `_id`: `DELETE` request to `/api/issues/{project}`\n  - Delete an issue with missing `_id`: DELETE request to `/api/issues/{project}`\n\n### Project Writeup:\n\nThe second Free Code Camp: Quality Assurance Project is a simple Issue Tracking App and API. Users can:\n\n- View a Project's Issues by visiting `/\u003cPROJECT\u003e` in browser, where `PROJECT` is the name of the PROJECT. Alternatively a JSON array of all of a Project's Issues can be received by sending a GET request to `/api/issues/\u003cPROJECT\u003e`. The returned array of Issues can be filtered by adding query parameters for the desired values of the Issue fields\n\n  - `_id` - 24 hexadecimal characters of desired Issue `_id`\n  - `issue_title`, `issue_text`, `created_by`, `assigned_to`, `status_text` - string\n  - `open` - string, must be 'true' or 'false'\n  - `created_on`, `updated_on` - date, can be\n    numeric (ms) or date string e.g. \"2022-09-04T21:28:44.998Z\"\n\n- Create a new Issue for a Project by submitting the form on the app home page, or by sending a POST request to `/api/issues/\u003cPROJECT\u003e` with a body containing url encoded fields of:\n\n  - Required Fields: `issue_title`, `issue_text`, `created_by`\n  - Optional Fields: `assigned_to`, `status_text`\n\n- Update a specific Issue for a Project by submitting the form on the app home page, or by sending a PUT request to `/api/issues/\u003cPROJECT\u003e` with a body containing url encoded fields of:\n\n  - Required Fields: `_id` and at least one of the following optional fields to be updated:\n  - Optional Fields: `issue_title`,\n    `issue_text`, `created_by`,\n    `assigned_to`, `status_text`,\n    `open` (open must be 'false' in order to close\n    Issue)\n\n- Delete a specific Issue for a Project by submitting the form on the app home page, or by sending a DELETE request to `/api/issues/\u003cPROJECT\u003e`, with a body consisting of a urlencoded field of `_id` corresponding to the `_id` of the Issue to be deleted.\n\nCreated Issues are stored in a MongoDB database, and expire after 24hrs for Demo purposes.\n\nA test suite has been written for the app:\n\n- `tests/2_functional-tests.js` contains functional tests of the application routes (GET, POST, PUT and DELETE requests to `/api/issues/:project`).\n\n### Project Files:\n\n- `server.js` - the main entry point of the application, an express web server handling the routes defined in the specification.\n\n- `/routes/api.js` - contains the major API routes for the express web app.\n\n- `/controllers/issueController.js` - contains the `issueController` middleware object, with methods to carry out the Create, Read, Update Delete operations on Issues as requested.\n\n- `public/` - contains static files for the web app (stylesheet, logo, favicons etc), served by express using `express.static()`.\n\n- `views/` - contains the html page(s) for the web app:\n\n  - `index.html`, which is served by express on `GET` requests to `/`.\n  - `issues.html`, which is served by express on `GET` requests to `/\u003cPROJECT\u003e`\n\n- `tests/` - contains the test suite for the application.\n\n### Usage:\n\nRequires Node.js / NPM in order to install required packages. After downloading the repo, install required dependencies with:\n\n`npm install`\n\nTo run the app locally, a valid MongoDB database URI and a database name are required to be entered as environmental variables (`MONGO_URI`, `DB_NAME`), which can be done via a `.env` file (see sample.env). One possible MongoDB service is **[MongoDB Atlas](https://www.mongodb.com/atlas/database)**.\n\nA development mode (with auto server restart on file save), can be started with:\n\n`npm run dev`\n\nThe application can then be viewed at `http://localhost:3000/` in the browser.\n\nTo start the server without auto-restart on file save:\n\n`npm start`\n\n# Issue Tracker BoilerPlate\n\nThe initial boilerplate for this app can be found at https://github.com/freeCodeCamp/boilerplate-project-issuetracker/\n\nInstructions for building the project can be found at https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/issue-tracker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplcoster%2Ffcc_qa_project2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplcoster%2Ffcc_qa_project2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplcoster%2Ffcc_qa_project2/lists"}