Skip to content

dschu-lab/simple-card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Card Game

A simple card game skeleton written in TypeScript using React.js

Website

In action

simple-card-game-preview

Open the live version

Quick Overview

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

Available scripts

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

Backend

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)

Deployment

The deployment is automated using Github Actions and pushes the production build automatically to surge.sh.