Skip to content

This repository is part of a collection of projects created during the Fullstack Bootcamp at It Academy. Each project is designed to enhance students' understanding and proficiency in fullstack development, covering a wide range of technologies and concepts.

Notifications You must be signed in to change notification settings

paula-uxengineer/itacademy-node.js-sprint-6.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

6.1-paula-garcia

Dice Game API

This project is a REST API developed in Node.js using TypeScript and follows the principles of SOLID Clean Architecture. It provides functionalities for a dice game, including player management, dice rolls, and a player ranking based on their success in the game.

Features

  • Player Management: Registration, update, and deletion of players.
  • Dice Rolls: Recording and deletion of dice rolls for players.
  • Player Ranking: Display of players ranked by their success in the game.

Technologies Used

  • Node.js
  • TypeScript
  • Express.js
  • Prisma (ORM for interacting with the database)
  • MySQL (Relational database)
  • Docker (For managing the database)

Prerequisites

  • Node.js and npm installed on your system.
  • Docker installed on your system.

Installation

  1. Clone this repository on your local machine:
git clone https://github.com/your-username/dice-game-api.git
  1. Navigate to the project directory:
cd dice-game-api
  1. Navigate to back-end directory:
cd back-end
  1. Install the project dependencies:
npm install

Copy the .env.example file and rename it to .env. Make sure to configure the environment variables according to your preferences.

Execution

  1. Start the MySQL database using Docker:
npm run docker
  1. Start the application:
npm run dev

The API will be available at http://localhost:3000.

Running Tests

To ensure all works as expected, all functions and routes were tested using Supertest and Jest.

Run this command to every function and route on /players

npm run test:players

Run this command to every function and route on /games

npm run test:games

Run this command to every function and route on /ranking

npm run test:ranking

This project is licensed under the MIT License.

About

This repository is part of a collection of projects created during the Fullstack Bootcamp at It Academy. Each project is designed to enhance students' understanding and proficiency in fullstack development, covering a wide range of technologies and concepts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published