https://github.com/asha23/trumps
This is a Headless WordPress / React Top Trumps style game
https://github.com/asha23/trumps
card game react top toptrumps trumps wordpress
Last synced: 2 months ago
JSON representation
This is a Headless WordPress / React Top Trumps style game
- Host: GitHub
- URL: https://github.com/asha23/trumps
- Owner: asha23
- Created: 2017-12-04T14:19:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T06:00:26.000Z (over 2 years ago)
- Last Synced: 2025-03-09T13:09:11.604Z (over 1 year ago)
- Topics: card, game, react, top, toptrumps, trumps, wordpress
- Language: JavaScript
- Homepage: http://prtbl.net/dev/trumps
- Size: 1.71 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Top Trumps
This uses a barebones WordPress installation and the v2 API to serve data via advanced custom fields to a React application.
The WordPress installation is set up from this framework:
https://github.com/asha23/arlo-framework
It's very much a work in progress, and there may well be the odd glitch. The React component was built using create-react-app as a starting point and has a Bootstrap 4 Sass library.
The Trump cards are managed in WordPress using the custom post type "Trumps" - There is a page per card.
The React part is in the folder ```/trumps-frontend``` - See the readme here for Todos for the React component.
There is also a WordPress plugin which supplies the application as a shortcode "[trumps]" so this can be integrated directly into your WordPress installation. This plugin is located in ```trumps-frontend/trumps_plugin``` - It's not in the repo as I don't track plugins - See the composer file in the root for details of what plugins are installed.
This was tested to work in Google Chrome only for now.
## TODOS
* Cross-Browser testing
To see a demo, visit
http://prtbl.net/dev/trumps