Giter Club home page Giter Club logo

videogames-front's Introduction

VIDEOGAMES

Visit the webpage

Project Documentation
This documentation provides an overview of the Videogames project, which consists of a client-side and server-side application for managing and displaying video games.

Table of Contents

Introduction


The Videogames project is designed to help users manage and view videogames. It consists of a client-side application built with React and a server-side application built with Express. The client-side application allows users to browse and search for video games, while the server-side application provides the necessary APIs to interact with the database.
API used: https://rawg.io/
## Installation
To run the Videogames project locally, follow these steps:
  1. Clone the repository from the Frontend Repository and Backend Repository.
  2. Set up a PostgreSQL database named videogames.
  3. Create an .env file inside the api folder of the backend repository with the following information:

DB_USER=[your PostgreSQL username] DB_PASSWORD=[your PostgreSQL password] DB_HOST=localhost 4. Open a terminal inside the api folder and run the following commands:
  • npm install to install the dependencies.
  • npm start to start the server.
  1. Open another terminal inside the client folder and run the following commands:
  • npm install to install the dependencies.
  • npm run dev to start the client application.
  1. Access the client application by visiting http://127.0.0.1:5173 in your web browser.

Configuration


The configuration for the Videogames project is stored in the .env file located in the api folder. This file contains the necessary environment variables for connecting to the PostgreSQL database.

Usage


Once the Videogames project is up and running, you can use the client application to browse and search for video games. The server-side API provides the following endpoints for interacting with the application:

API Endpoints



GET /api/videogame

  • Description: Retrieves a list of all video games.
  • Query Parameters:
    • page (optional): Specifies the page number for pagination.
    • limit (optional): Specifies the number of results per page.
  • Example Response:

{ "id": 3498, "name": "Grand Theft Auto V", "image": "https://media.rawg.io/media/games/456/456dea5e1c7e3cd07060c14e96612001.jpg", "genres": [ { "name": "Action" }, { "name": "Adventure" } ], "released": "2013-09-17", "rating": 4.47, "platforms": [ "PlayStation 5", "Xbox Series S/X", "PlayStation 4", "PC", "PlayStation 3", "Xbox 360", "Xbox One" ] }, //more games...
GET /api/videogame/:id Description: Retrieves a specific video game by its ID. Path Parameters: id: The ID of the video game. Example Response:
"id": "6589", "title": "Grand Theft Auto V"", "genre": "Action", "platform": "PC", "release_date": "2023-01-" "description": "a description...

POST /api/videogame
Description: Creates a new video game entry. Request Body:

  • title (string, required): The title of the video game.
  • genre (string, required): The genre of the video game.
  • platform (string, required): The platform(s) on which the video game is available.
  • release_date (string, required): The release date of the video game.
  • image (string): must be the url of an image.
  • description (string)



Contributing


I welcome ontributions to the Videogames project! Whether you want to report a bug, suggest new features, or submit code changes, your contributions are highly appreciated.

License



MIT License

Copyright (c) [year] [project owner]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

[License terms and conditions]



Images



Homepage:

Screenshot 2023-06-21 at 18 57 16



Detail of a card:

Screenshot 2023-06-21 at 18 57 37

Form for the creation of a new videogame with the state of genres and platforms ordered alphabetically for ease of use:

Screenshot 2023-06-21 at 18 58 19

Pokemon-front

videogames-front's People

Contributors

pcelman avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.