{"id":20073191,"url":"https://github.com/mamertmg/x-press_back-end","last_synced_at":"2026-04-12T00:02:56.985Z","repository":{"id":105121561,"uuid":"456647088","full_name":"mamertmg/x-press_back-end","owner":"mamertmg","description":"Management app for a comic book publishing company: X-Press Publishing.","archived":false,"fork":false,"pushed_at":"2022-02-08T18:03:13.000Z","size":814,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T00:28:31.285Z","etag":null,"topics":["expressjs","nodejs","react","reactjs","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","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/mamertmg.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}},"created_at":"2022-02-07T19:27:46.000Z","updated_at":"2022-04-06T03:55:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee49c9d7-b639-4f55-be47-83ee3ba8d7cf","html_url":"https://github.com/mamertmg/x-press_back-end","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/mamertmg%2Fx-press_back-end","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamertmg%2Fx-press_back-end/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamertmg%2Fx-press_back-end/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamertmg%2Fx-press_back-end/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamertmg","download_url":"https://codeload.github.com/mamertmg/x-press_back-end/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241503888,"owners_count":19973136,"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":["expressjs","nodejs","react","reactjs","sqlite","sqlite3"],"created_at":"2024-11-13T14:44:13.397Z","updated_at":"2026-04-12T00:02:56.955Z","avatar_url":"https://github.com/mamertmg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# X-Press Publishing\n\n## Project Overview\n\nThis is a Capstone project of the \"Create a Back-End app skill path\" of Codecademy.\nIt is an internal tool for a comic book publishing company called X-Press Publishing.\n\nThe X-Press Publishing internal tool should allow users to:\n- Create, view, and update artists\n- Create, view, update, and delete comic book series\n- Create, view, update, and delete issues of a specific comic book series\n\n### Database Table Properties\n\n* **Artist**\n  - id - Integer, primary key, required\n  - name - Text, required\n  - date_of_birth - Text, required\n  - biography - Text, required\n  - is_currently_employed - Integer, defaults to `1`\n\n* **Series**\n  - id - Integer, primary key, required\n  - name - Text, required\n  - description - Text, required\n\n* **Issue**\n  - id - Integer, primary key, required\n  - name - Text, required\n  - issue_number - Text, required\n  - publication_date - Text, required\n  - artist_id - Integer, foreign key, required\n  - series_id - Integer, foreign key, required\n\n\n### Route Paths and Functionality\n\n**/api/artists**\n- GET\n  - Returns a 200 response containing all saved currently-employed artists (`is_currently_employed` is equal to `1`) on the `artists` property of the response body\n- POST\n  - Creates a new artist with the information from the `artist` property of the request body and saves it to the database. Returns a 201 response with the newly-created artist on the `artist` property of the response body\n  - If any required fields are missing, returns a 400 response\n\n**/api/artists/:artistId**\n- GET\n  - Returns a 200 response containing the artist with the supplied artist ID on the `artist` property of the response body\n  - If an artist with the supplied artist ID doesn't exist, returns a 404 response\n- PUT\n  - Updates the artist with the specified artist ID using the information from the `artist` property of the request body and saves it to the database. Returns a 200 response with the updated artist on the `artist` property of the response body\n  - If any required fields are missing, returns a 400 response\n  - If an artist with the supplied artist ID doesn't exist, returns a 404 response\n- DELETE\n  - Updates the artist with the specified artist ID to be unemployed (`is_currently_employed` equal to `0`). Returns a 200 response.\n  - If an artist with the supplied artist ID doesn't exist, returns a 404 response\n\n**/api/series**\n- GET\n  - Returns a 200 response containing all saved series on the `series` property of the response body\n- POST\n  - Creates a new series with the information from the `series` property of the request body and saves it to the database. Returns a 201 response with the newly-created series on the `series` property of the response body\n  - If any required fields are missing, returns a 400 response\n\n**/api/series/:seriesId**\n- GET\n  - Returns a 200 response containing the series with the supplied series ID on the `series` property of the response body\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n- PUT\n  - Updates the series with the specified series ID using the information from the `series` property of the request body and saves it to the database. Returns a 200 response with the updated series on the `series` property of the response body\n  - If any required fields are missing, returns a 400 response\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n- DELETE\n  - Deletes the series with the supplied series ID from the database if that series has no related issues. Returns a 204 response.\n  - If the series with the supplied series ID has related issues, returns a 400 response.\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n\n**/api/series/:seriesId/issues**\n- GET\n  - Returns a 200 response containing all saved issues related to the series with the supplied series ID on the `issues` property of the response body\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n- POST\n  - Creates a new issue, related to the series with the supplied series ID, with the information from the `issue` property of the request body and saves it to the database. Returns a 201 response with the newly-created issue on the `issue` property of the response body\n  - If any required fields are missing or an artist with the supplied artist ID doesn't exist, returns a 400 response\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n\n**/api/series/:seriesId/issues/:issueId**\n- PUT\n  - Updates the issue with the specified issue ID using the information from the `issue` property of the request body and saves it to the database. Returns a 200 response with the updated issue on the `issue` property of the response body\n  - If any required fields are missing, returns a 400 response\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n  - If an issue with the supplied issue ID doesn't exist, returns a 404 response\n- DELETE\n  - Deletes the issue with the supplied issue ID from the database. Returns a 204 response.\n  - If a series with the supplied series ID doesn't exist, returns a 404 response\n  - If an issue with the supplied issue ID doesn't exist, returns a 404 response\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamertmg%2Fx-press_back-end","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamertmg%2Fx-press_back-end","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamertmg%2Fx-press_back-end/lists"}