Demo project where a separation of responsibilities is united using the concepts of: - Template (view), Logic (controller) , Data (Model). Rest-oriented system.
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
Responsive design of a dynamic web page
Game creation with three players required.
Form validation with required fields.
Filter to find games from their unique identifier.
Method to find all available games in the database.
View display when there are no games in the database.
View display when game is not found by identifier.
Status to validate if the game can be played.
If the game has been played, I could see the details of the winner.
See the details of the winner gives game.
Deleting a game that has been played or not.
If a route is not found automatically an error view is displayed.
This section contains the platforms that were used for the project.
Install each one the pieces of software previously mentioned.
- 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
-
Open the project with VisualStudio Code (In the root proyect directory)
$ open .
-
Install the node package (In the root proyect directory)
$ npm install
-
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
-
Run the proyect (In the root proyect directory)
$ npm run start
-
Open the localhost port 3000 in your preference browser
http://localhost:3000/
Distributed under the MIT License. See LICENSE.txt
for more information.
Nestor Quiroga Suarez
Jr. Software Developer
- LinkedIn => Nestor Quiroga Suárez
Project Link: https://adice-game.herokuapp.com/