Skip to content

DiceGameITAcademy/DiceGameMVC1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiceGame MVC

About

This is a web application or API built using Node.js and the Express.js framework. It is based on MVC (Model View Controller.) The app presents a dice game.

Getting Started

To get started with the application, follow these steps:

  1. Clone the repository to your local machine.

  2. Install the required dependencies by running the following command:

    npm install
    
  3. Build the application using TypeScript by running:

    npm run build
    

Playing instructions:

  1. Go to front.html.
  2. Create your player using the form. If the player is created correctly, a message will appear confirming it.
  3. Take the id of your created player. Type that id in the "Enter player's ID to get a player's games" field.
  4. hit the "Roll dice!" button.
  • There are 2 dice. You must get 7 to win, otherwise you lose.

The results of your game will appear on the screen.

Have fun!

scripts

  • Install the required dependencies by running the following command:

    npm run dev
    
  • Application start

    npm start
    
  • Tests

    npm test
    
    

Routes and Postman

  • Routes are defined in server/routes/routes.ts

Click on Postman to check the routes

Run in Postman

Dependencies and devDependencies

Database

The app connects to the mySql database. The configuration of this connection can be found in ... We have used Sequelize for the ORM

Folder structure

Local Image

About

Project in collaboration with @IvandeGea. This is a web application or API built using Node.js and the Express.js framework. It is based on MVC (Model View Controller.) The app presents a dice game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors