-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# Fullstack System Boilerplate | ||
Run `npm start` or `fullstack-system dev` to start the development server. | ||
## Play | ||
You can play the game at http://cards-against-humanity.surge.sh. | ||
|
||
## Built With (Major Only) | ||
- React | ||
- Material UI | ||
- [Dave's Fullstack System](https://github.com/imdaveead/fullstack-system/) | ||
- Docsify (Documentation) | ||
- Node.JS (Server) | ||
|
||
### Server | ||
The server was written in **Node.JS** along with **Socket.IO** and the code is at https://hparcells.github.io/cards-against-humanity/. The server primary action is to store the game data along with distribute it to the players when it is updated, while the client does minor logic before sending the action to the server. | ||
|
||
## Motivation | ||
The motovation for this project came from an idea to create some sort of card or board game within React, and I though a card game would be easier that a board game. This was also during the time when I was learning React and wanted to make a larger project then I ever have done before. | ||
|
||
Development time took around two and a half weeks, way shorter than I though it would take, given that I was gone on a trip during that time as well. | ||
|
||
## Future Roadmap | ||
- [ ] Desktop App via **Electon** | ||
|
||
## Credits | ||
- Hunter Parcells (Me): Almost the whole game. | ||
- [Dave](https://github.com/imdaveead): Implementing animations for the cards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* [Home](/) | ||
* [Writing Custom Decks](custom-decks.md) | ||
* [API](api.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# API | ||
> Get data with the REST API. | ||
|
||
## Table of Contents | ||
- [API](#API) | ||
- [Table of Contents](#Table-of-Contents) | ||
- [URL](#URL) | ||
- [Endpoints](#Endpoints) | ||
- [/currentGame](#currentGame) | ||
- [/sets](#sets) | ||
- [/set/:set](#setset) | ||
- [randomWhiteCard/:set?](#randomWhiteCardset) | ||
- [randomBlackCard/:set?](#randomBlackCardset) | ||
|
||
## URL | ||
You can access the API through: `https://cah-game.herokuapp.com/api/`. | ||
|
||
## Endpoints | ||
### /currentGame | ||
Gets the current game object of the running game. | ||
|
||
### /sets | ||
Lists all the valid set IDs available. | ||
|
||
### /set/:set | ||
Gets the data of a specified set. The `set` parameter has to be a valid set ID. Set IDs can be found through `/sets`. | ||
|
||
### randomWhiteCard/:set? | ||
Gets a random white card from a set. If so `set` parameter is provided, it grabs a random white card from the default deck. Set IDs can be found through `/sets`. | ||
|
||
### randomBlackCard/:set? | ||
Gets a random black card from a set. If so `set` parameter is provided, it grabs a random black card from the default deck. Set IDs can be found through `/sets`. | ||
|
||
This only returns the text of the black card. It does not include how many white cards must be chosen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters