{"id":21273015,"url":"https://github.com/rijalghodi/x-press-publishing","last_synced_at":"2026-04-12T03:03:18.415Z","repository":{"id":179045881,"uuid":"562095262","full_name":"rijalghodi/x-press-publishing","owner":"rijalghodi","description":"Internal tool for a comic book publishing company called XPress Publishing","archived":false,"fork":false,"pushed_at":"2022-11-05T10:11:22.000Z","size":688,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T03:08:25.151Z","etag":null,"topics":["back-end-development","expressjs","nodejs","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/rijalghodi.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-11-05T09:47:53.000Z","updated_at":"2022-11-05T10:02:42.000Z","dependencies_parsed_at":"2023-07-07T11:00:35.160Z","dependency_job_id":null,"html_url":"https://github.com/rijalghodi/x-press-publishing","commit_stats":null,"previous_names":["rijalghodi/x-press-publishing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rijalghodi%2Fx-press-publishing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rijalghodi%2Fx-press-publishing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rijalghodi%2Fx-press-publishing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rijalghodi%2Fx-press-publishing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rijalghodi","download_url":"https://codeload.github.com/rijalghodi/x-press-publishing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732252,"owners_count":20338831,"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":["back-end-development","expressjs","nodejs","sqlite3"],"created_at":"2024-11-21T09:11:09.047Z","updated_at":"2025-12-31T00:21:56.974Z","avatar_url":"https://github.com/rijalghodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XPress Publishing\n\n## Project Overview\n\nIn this capstone project, I created an internal tool for a comic book publishing company called XPress Publishing.\n\nThe XPress Publishing internal tool should allow users to:\n\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\nYou can view all of this functionality in action in the video below:\n\n## How To Begin\n\n- Download the code for this project. After downloading the zip folder, double click it to uncompress it and access the contents of this project.\n\n- Install all the modules needed by this project by running `npm install` in the project root\n\n- Open the `index.html`\n\n- Run the server by `node server.js` in the project root\n\n## Testing\n\nA testing suite has been provided, checking for all essential functionality and edge cases.\n\nTo run these tests, first, open the root project directory in your terminal. Then run `npm install` to install all necessary testing dependencies (if you haven't already). Finally, run `npm test`. You will see a list of tests that ran with information about whether or not each test passed. After this list, you will see more specific output about why each failing test failed.\n\n### Database Table Properties\n\n- **Artist**\n\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\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### Route Paths and Functionality\n\n**/api/artists**\n\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\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\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\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\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\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%2Frijalghodi%2Fx-press-publishing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frijalghodi%2Fx-press-publishing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frijalghodi%2Fx-press-publishing/lists"}