An open API service indexing awesome lists of open source software.

https://github.com/darthinvader/boardgamevendor

An app that searches board games from the popular websites boardgamegeeks.com and displays them as well as letting you create a list of favorites
https://github.com/darthinvader/boardgamevendor

axios-react game react react-router scss-framework

Last synced: 2 months ago
JSON representation

An app that searches board games from the popular websites boardgamegeeks.com and displays them as well as letting you create a list of favorites

Awesome Lists containing this project

README

          


Board game vendor


This is a react based application power by create-react-app to search board games and save them as favorites in a json-server through axios.

---

Search

The search functionality uses axios to post a request to the json api of boardgamegeek. In order to do that it uses an intermidiate site called cors-anywhere to bypass the cors restrictions in the browser.

Search fetches the ten(10) first results and displays them.

You can hit the little heart icon to add the board game to your favorites list through an axios request to an internal json-server.

![Search Preview](https://i.imgur.com/IiQIPSjh.png)

---

Favorites



Favorites use axios to get, delete and update the favorites from the json-server. You can delete a favorite by clicking on the little red heart icon.
![Favorites Preview](https://i.imgur.com/oLcRg9vh.png)

---

Technologies

- Reactjs
- React-Router
- Axios
- json-server
- CRUD
- SPA(Single Page Application)
- scss

---

Setup

Clone this repo and run `npm install` to install all dependencies.

Then run `npm install -g json-server` to install json server globally.

---

Usage

After completing the setup above, go to the root folder and run `npm run db` to start the json-server.

Then run `npm start` to start the server and open the app in your browser.