Skip to content

SugarDarius/react-game-store-200

Repository files navigation

React Game Store - 200

The practical work of the Sfeir School React 200

SfeirLogo

Table of Contents

Getting Started

These are the instructions to run the project.

Prerequisites

  • NodeJS version >= 10.13.x
  • NPM version >= 6.7.x

Installing

Clone the project:

git clone https://github.com/SugarDarius/react-game-store-200.git

Installing dependencies:

This project is build wih nodejs.
You need to install the node modules with the following command :

npm install

Running in development

These are differents commands availables for the project.

Start the project entirely

npm run develop -- [exerice-name]

Running the 3 commands below - if no args are provided then the app build only the splash screen (home)

Serving the API

npm run develop:api:serve

Serving the front server

npm run develop:server:serve

Building and server the client (bundled with webpack the React app)

npm run develop:client:build

Practical Work

The practical work is serve at : http://localhost:4010

The route http://localhost:4010/api is proxyfying to the http://localhost:5010.

Exercices

Each exercices are contained in the src/ directory. For one exercice there is two directory :

  • exercice-[xx]: sources where to write code to make the exercice
  • exercice-[xx]-correction: sources where is the correction of the exercice

API

The API of the practical work is serve at : http://localhost:5010

Routes :

  • [GET] /api/games: get all games
  • [GET] /api/game/:id: get a game
  • [POST] /api/game: create a new game
  • [PUT] /api/game/:id: update a game
  • [DELETE] /api/game/:id: delete a game

SwaggerUI :

A SwaggerUI is available at : http://localhost:5010/?url=http://localhost:5010/helpers/swagger.yaml

Built With

Authors

  • Joris Moine --
  • Aurélien Dupays Dexemple -- SugarDarius

License

This project is licensed under the MIT License - see the LICENSE file for details