{"id":15569859,"url":"https://github.com/thiagohrcosta/starwars-deck-api","last_synced_at":"2026-04-13T06:47:04.841Z","repository":{"id":104848274,"uuid":"379067526","full_name":"thiagohrcosta/starwars-deck-api","owner":"thiagohrcosta","description":"This is a simple project to hold a API on backend and a frontend with React using Star Wars card game to display content to user.","archived":false,"fork":false,"pushed_at":"2021-07-31T15:21:18.000Z","size":26447,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T17:59:46.169Z","etag":null,"topics":["bootstrap","css","html5","rails","reactjs","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/thiagohrcosta.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":"2021-06-21T21:30:02.000Z","updated_at":"2021-07-31T15:21:21.000Z","dependencies_parsed_at":"2023-07-04T22:51:23.607Z","dependency_job_id":null,"html_url":"https://github.com/thiagohrcosta/starwars-deck-api","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/thiagohrcosta%2Fstarwars-deck-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fstarwars-deck-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fstarwars-deck-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fstarwars-deck-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagohrcosta","download_url":"https://codeload.github.com/thiagohrcosta/starwars-deck-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145085,"owners_count":20730495,"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":["bootstrap","css","html5","rails","reactjs","ruby"],"created_at":"2024-10-02T17:40:24.400Z","updated_at":"2026-04-13T06:46:59.802Z","avatar_url":"https://github.com/thiagohrcosta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Star Wars API\n![Main](https://res.cloudinary.com/dloadb2bx/image/upload/v1627743154/starWarsAPI_qsngnd.png)\n\n\n## Technologies\n\n**Backend** \u003cbr\u003e\n\u003cimg alt=\"Ruby\" src=\"https://img.shields.io/badge/ruby-%23CC342D.svg?style=for-the-badge\u0026logo=ruby\u0026logoColor=white\"/\u003e \u003cimg alt=\"Rails\" src=\"https://img.shields.io/badge/rails-%23CC0000.svg?style=for-the-badge\u0026logo=ruby-on-rails\u0026logoColor=white\"/\u003e \u003cimg alt=\"Postgres\" src =\"https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\"/\u003e\n\n**Frontend** \u003cbr\u003e\n\u003cimg alt=\"React\" src=\"https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge\u0026logo=react\u0026logoColor=%2361DAFB\"/\u003e \u003cimg alt=\"HTML5\" src=\"https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge\u0026logo=html5\u0026logoColor=white\"/\u003e \u003cimg alt=\"CSS3\" src=\"https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge\u0026logo=css3\u0026logoColor=white\"/\u003e \u003cimg alt=\"SASS\" src=\"https://img.shields.io/badge/SASS-hotpink.svg?style=for-the-badge\u0026logo=SASS\u0026logoColor=white\"/\u003e \u003cimg alt=\"Bootstrap\" src=\"https://img.shields.io/badge/bootstrap-%23563D7C.svg?style=for-the-badge\u0026logo=bootstrap\u0026logoColor=white\"/\u003e\n\n### Gems used\n- Devise;\n- Pundit;\n- Rack-cors\n\n\n### React Features used\n- useState;\n- useEffect;\n\n### React NPM packages\n- Axios\n\n### Versions\n - Ruby - 2.6.6\n - Rails - Rails 6.1.3.2\n- PostgreSQL -  12.7\n\n## Database\n![UML](https://res.cloudinary.com/dloadb2bx/image/upload/v1627743876/starWarsbdwagon_xw8umn.png)\n\nThe final version on project was:\n![enter image description here](https://res.cloudinary.com/dloadb2bx/image/upload/v1627743853/starWarsDB_srwkak.png)\n## API endpoint\n![API](https://res.cloudinary.com/dloadb2bx/image/upload/v1627743598/starWarsAPI_nc8i7a.gif)\n\nThe endpoint to get all cards from the API is `http:localhost:3000/api/v1/cards`.\n\n## Getting data\n![enter image description here](https://res.cloudinary.com/dloadb2bx/image/upload/v1627744447/swMain_xqnrkk.png)\nTo get data from the API was used a async function fetchData which code can be seen below:\n\n    async function fetchData(){\n      const response = await api.get(\"cards\");\n      setCards(response.data);\n  }\n\n\n## How to run this project?\nFirst of all, you need to start de backend server that are running on Rails. To do that open the `backend-api` folder and type `rails s` on terminal. To start the frontend you need to open the starwars-client folder and type `yarn start`\n\n**Backend**: running on port 3000 \u003cbr\u003e\n**Frontend**: running on port 3001 \u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagohrcosta%2Fstarwars-deck-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagohrcosta%2Fstarwars-deck-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagohrcosta%2Fstarwars-deck-api/lists"}