Skip to content

CariblaGIT/CSMJ

Repository files navigation

PROJECT BACKEND LARAVEL: GAMELOBBY

Demostración de funcionalidad

Table of Contents 📁

  1. Description 🏛️
  2. Stack ⚙️
  3. Project 📖
  4. Authors 👋

Description 🏛️

Welcome to GameLobby, the ultimate hub for gamers to unite and play! 🎮 Dive into our dynamic social network tailored for gaming fans. Create custom gaming rooms linked to your favorite titles and spark conversations that evolve into epic multiplayer battles. Whether you're strategizing for the next raid or sharing tips for the latest release, GameLobby is your virtual playground for gaming greatness. Level up your social gaming experience today!


Stack ⚙️


Project 📖

diagrama

1 - Local Installation:

  • Clone repository.
  • Install all the dependencies on the project
  composer install
  • Fill .env with data on .env.sample, specifically the variables related with DB.
  • Open docker container and MySql Workbench that you have created for the project with the data given into .env
  • Create and fill the tables
php artisan migrate --seed
  • Launch the api for using the methods
composer artisan serve

2 - Info to log

  • Super_admin:
  _id: 1,
  name: "SuperAdmin",
  email: "[email protected]",
  password: "admin1234",
  role: "super_admin"
  • User:
  _id: 2,
  name: "User",
  email: "[email protected]",
  password: "123456",
  role: "user"

2 - Enpoints:

  1. Register and Login:
  • Register:
localhost:8000/api/register

register

  • Login:
localhost:8000/api/login

login

  1. User:
  • Get all users:

Only super_admin can get all users

localhost:8000/api/users

GetAllUsers

  • Get profile:

Need user logging

localhost:8000/api/users/profile

GetProfile

  • Delete user :

Only super_admin can delete users

DeleteUser

  1. Games:
  • Get all games:

Need user logging

localhost:8000/api/games

GetAllGames

  • Post game:

Only super_admin can post game

localhost:8000/api/games

PostGame

  • Put game:

Only super_admin can update game

localhost:8000/api/games/{id}

PutGame

  • Delete game:

Only super_admin can delete game

localhost:8000/api/games/{id}

DeleteGame

  1. Rooms:
  • Get all rooms:

Need user logging

localhost:8000/api/rooms

GetAllRooms

  • Post room:

Need user logging

localhost:8000/api/rooms

PostRoom

  • Put room:

Need user logging

localhost:8000/api/rooms/{id}

  • Delete room:

Need user logging

localhost:8000/api/rooms/{id}

DeleteRoom

  1. Messages:
  • Get all room messages:

Need user logging

GetAllRoomMessages

  • Get all my messages:

Need user logging

GetAllMyMessages

  • Post message:

Need user logging

PostMessage

  • Put message:

Need user logging

PutMessage

  • Delete message:

Need user logging

DeleteMessage

  1. User-Room:
  • Get user-room:

GetUserRoom

  • Post user-room:

Need user logging

PostUserRoom

  • Delete user-room:

DeleteUserRoom


Authors 👋

Demostración de funcionalidad

Sergio Torres Marta Gimeno Carlos Ibañez Jose Ferrer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •