Skip to content

Demo project where a separation of responsibilities is united using the concepts of MVC.

License

Notifications You must be signed in to change notification settings

nqs48/DiceGame_ADev

Repository files navigation

DiceGame-API_REST

Demo project where a separation of responsibilities is united using the concepts of: - Template (view), Logic (controller) , Data (Model). Rest-oriented system.


About The Project

Responsive design of a dynamic web page, where you can play a game of dice with your friends or family obtaining an undisputed winner.

  • Key frontend and backend concepts
  • Rest API with Nodejs
  • API consumption from the frontend

PROJECT REVIEW:

UI Index Web Page

Responsive design of a dynamic web page

image


CREATE GAME:

Form to create game

Game creation with three players required.

image

Form Validation

Form validation with required fields.

image


FIND GAMES:

Find By ID

Filter to find games from their unique identifier.

image

Find All Games

Method to find all available games in the database.

image

Can't Find All Games

View display when there are no games in the database.

image

Can't Find By ID

View display when game is not found by identifier.

image


DETAILS GAME:

State of the game inProgress: True

Status to validate if the game can be played.

image

State of the game inProgress: False

If the game has been played, I could see the details of the winner.

image

View Winner

See the details of the winner gives game.

image


DELETE GAME:

Delete some game

Deleting a game that has been played or not.

image


ERROR UI:

Generic View for Not Found

If a route is not found automatically an error view is displayed.

image

Built With

This section contains the platforms that were used for the project.

Installation

Install each one the pieces of software previously mentioned.

  1. Clone the repo
  • HTTPS

    $ git clone https://github.com/nqs48/SofkaS4T1-API_REST-DiceGame.git
    
  • SSH

    $ git clone git@github.com:nqs48/SofkaS4T1-API_REST-DiceGame.git
    
  1. Open the project with VisualStudio Code (In the root proyect directory)

    $ open .
    
  2. Install the node package (In the root proyect directory)

    $ npm install
    
  3. Set your environment variables or write the connection string of your cluster in mongo db (File App.js)

     mongodb+srv://<Your-User>:<Your-Password>@cluster0.j505h.mongodb.net/<Your-DataBase>?retryWrites=true&w=majority
     
    
  4. Run the proyect (In the root proyect directory)

    $ npm run start
    
  5. Open the localhost port 3000 in your preference browser

    http://localhost:3000/
    
    

License

Distributed under the MIT License. See LICENSE.txt for more information.


Collaborators

Nestor Quiroga Suarez
Jr. Software Developer

Project Link: https://adice-game.herokuapp.com/

(back to top)

About

Demo project where a separation of responsibilities is united using the concepts of MVC.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published