A simple card game skeleton written in TypeScript using React.js
This project was bootstrapped using the TypeScript template of the Create React App.
npm i # Install dependencies
npm run start # Starts the development server on localhost:3000
Use npm run [COMMAND]
to execute available scripts.
Command | Description |
---|---|
start |
Starts the development server |
build |
Build the app for production |
postbuild |
Runs automatically after the build. Creates a 200.html for surge.sh |
test |
Launches the test runner |
coverage |
Analyzes test coverage |
lint |
Checks for linting errors |
eject |
Ejects from react-scripts |
The backend was mocked using Mocko.
METHOD | Endpoint | Description |
---|---|---|
GET | /cards/ |
Returns a list of cards |
POST | /cards/{id} |
Update a card by its id. (Will return data from the payload without modifying any data) |
The deployment is automated using Github Actions and pushes the production build automatically to surge.sh.