{"id":17355839,"url":"https://github.com/zakaria9375/qa-springboot-backend","last_synced_at":"2026-05-11T05:52:08.889Z","repository":{"id":246428518,"uuid":"821006190","full_name":"Zakaria9375/QA-springboot-backend","owner":"Zakaria9375","description":"Question and Answer - fullstack web app - using react and spring boot ","archived":false,"fork":false,"pushed_at":"2024-07-02T12:06:21.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T18:34:26.381Z","etag":null,"topics":["postgresql","spring-boot","spring-data-jpa","spring-data-rest","spring-devtools","spring-web"],"latest_commit_sha":null,"homepage":"https://naked-vivien-zaportfolio-345d21c7.koyeb.app","language":"Java","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/Zakaria9375.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-06-27T16:03:51.000Z","updated_at":"2024-07-02T12:06:25.000Z","dependencies_parsed_at":"2024-06-27T23:26:39.105Z","dependency_job_id":"dbcf808c-10d8-408c-a068-eeefe93c6ab3","html_url":"https://github.com/Zakaria9375/QA-springboot-backend","commit_stats":null,"previous_names":["zakaria9375/qa-springboot-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zakaria9375%2FQA-springboot-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zakaria9375%2FQA-springboot-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zakaria9375%2FQA-springboot-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zakaria9375%2FQA-springboot-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zakaria9375","download_url":"https://codeload.github.com/Zakaria9375/QA-springboot-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858889,"owners_count":20684062,"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":["postgresql","spring-boot","spring-data-jpa","spring-data-rest","spring-devtools","spring-web"],"created_at":"2024-10-15T17:46:01.369Z","updated_at":"2026-05-11T05:52:08.808Z","avatar_url":"https://github.com/Zakaria9375.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Questions \u0026 Answers - Spring(Java)\n\nThis repository is a Java application developed using the powerful Spring Framework, designed to serve as a backend for my frontend repository [QA-React](https://github.com/Zakaria9375/Q-A-react) \n\n## Technologies\n\nThe technologies used in this project are:\n\n* Java\n* Spring Framework with the following dependencies\n  * Spring data jpa\n  * Spring data rest\n  * Postgresql Driver\n  * Lombok\n  * Spring devtools\n  * Spring web\n* Postgresql\n\n## Prerequisites\n\nBefore you begin to work with this repo in your local machine, ensure you have met the following requirements:\n- Java Development Kit (JDK) 11 or later\n- Maven 3.6.3 or later\n- Docker (optional, for containerization)\n\n## Setup\n\nTo run this app in development mode open the terminal and write the following:\n\n```sh\ngit clone https://github.com/Zakaria9375/QA-springboot-backend\n\ncd QA-springboot-backend\n\n./mvnw clean package\n\n./mvnw spring-boot:run\n\njava -jar target/qa-0.0.1-SNAPSHOT.jar\n```\n\n## Endpoints\n\nThe API is available at `https://inevitable-odelle-zaportfolio-3128ae44.koyeb.app/`\n\n\u003cdetails\u003e\n\u003csummary\u003eAPI-endpoints\u003c/summary\u003e\n\n### Questions\n\n#### List of questions by page\n\n\u003e GET `/questions`\n\n#### Search for a question by title\n\n\u003e GET `/questions/search/findByTitleContaining?title=${searchTerm}`\n\n### Answers \n\n#### List of answers for a specific questions\n\n\u003e GET `/answers/search/findAllByQuestionId?questionId=${questionId}`\n\n#### Edit an answer by ID\n\n\u003e PUT `/answers/:id`\n\nThe request body needs to be in JSON format and include the following properties:\n* content: required\n* userId: optional\n* questionId: required\n* createdAt: required\n\n``` json\n{\n  \"content\": \"This is an edited answer\",\n  \"user\": \"/users/2\",\n  \"question\": \"/questions/5\",\n  \"createdAt\": \"Data of creaion\"\n}\n```\n\n#### Add a new answer\n\n\u003e POST `/answers`\n\nThe request body needs to be in JSON format and include the following properties:\n* content: required\n* userId: optional\n* questionId: required\n\n``` json\n{\n  \"content\": \"This is a new answer\",\n  \"user\": \"/users/2\",\n  \"question\": \"/questions/5\"\n}\n```\n\n#### Delete an answer by ID\n\n\u003e DELETE `/answers/:id`\n\n### Users\n\n#### Get a user by ID\n\n\u003e GET `/users/:id` \n\n\u003c/details\u003e\n\n## Docker Image\n\nYou can also run this application using the Docker image available on Docker Hub.\n\nDocker Hub Repository: [zakaria9375/qa](https://hub.docker.com/repository/docker/zakaria9375/qa)\n\nTo pull and run the Docker image, use the following command:\n\n``` shell\ndocker pull zakaria9375/qa3:latest\n\ndocker run -d -p 8050:8050 zakaria9375/qa3:latest\n```\n\n## Database\n\nPostgresql database has been used in this application. Here is the flowchart that illustrates the database tables:\n\n\u003cimg src=\"/EDR.PNG\" alt=\"Entity-Relationship Diagram\"\u003e\n\n## Retrospectives\n\n\u003e What went well ?\n\nThis app has successfully managed to perform CRUD operation on the Postgresql database and creating the necessary api endpoints for a successful communication with the frontend.\n\n\u003e What could be improved ?\n\nSecuring the api endpoints. (ToDo)\n\n## About the Author\n\n\u003e  In every project I develop, I focus on improving code quality and incorporating new techniques into my development process. I strive to learn from my mistakes by addressing them directly and applying those lessons to future projects. My goal is to continuously refine and enhance ***my standard approach to project development***.\n\n* Portfolio - [Zakaria Ali](https://zaportfolio.netlify.app/)\n* Frontend Mentor Profile - [@Zakaria9375](https://www.frontendmentor.io/profile/Zakaria9375)\n* Project by - [Frontend Mentor team](https://www.frontendmentor.io/)\n\n## Contributing\n\n**Want to contribute?** *Great!* Here’s how you can help:\n\n1. Fork the repo and create your branch from `main`.\n2. Make your changes and test.\n3. Issue that \"pull\" request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakaria9375%2Fqa-springboot-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakaria9375%2Fqa-springboot-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakaria9375%2Fqa-springboot-backend/lists"}