Giter Club home page Giter Club logo

gamesite's Introduction

GameSite

Welcome to GameSite, a video game store where you can find games from different categories. We are proud to present our project to you.

Disclaimer

This project is being developed as part of an academic evaluation for Duoc UC. Any use of this project for academic evaluations without our consent is not authorized.

Repository

This repository is used to track our work during the bimester.

Course

  • PROGRAMACION WEB_002A

Team Members

  • DANIEL B.
  • WLADIMIR U.

Get Access to Our API

  1. Create an account on our web application.
  2. Click on 'get API key'.
  3. Copy the token.
  4. Access with Postman.
  5. Take this image as a reference:

In headers; key: Authorization, value: token pasteYourTokenHere

image

Roles

Role Description
Anonymous Only has access to view the content of the page.
User Can create an account, log in, purchase games, and view their purchase history.
Supervisor Access to a customized admin panel (with restrictions regarding the superuser panel).
Admin Django superuser, access to everything except buying actions.

How to use each role

  • Anonymous: As an anonymous user, you can browse the website and view game catalogs without creating an account or logging in.
  • User: To use the user role, you need to create an account and log in. Once logged in, you can purchase games and view your purchase history.
  • Supervisor: To use the supervisor role, an admin (superuser) must create a user and assign them the role that has the description have access to the custom admin panel.
  • Admin: To use the admin role, you need to have Django superuser privileges. As an admin, you have access to everything except buying actions.

Note: All types of users can log in through the website's login page, but only the admin can log in through http://127.0.0.1:8000/admin/.

Getting Started

To get started with this project, you'll need to have a local development environment set up.

Prerequisites

  • Python 3.11.3(recommended)

Installation in local machine with oracle 21c xe

  1. Create a database with the user "USR_GAMESITE" and password "duoc123456".
  2. Clone this repository to your local machine.
  3. Install the required dependencies by running pip install -r requirements.txt.
  4. Run python manage.py migrate to apply database migrations.
  5. Create a superuser by running python manage.py createsuperuser.
  6. Run the Django development server by running python manage.py runserver.
  7. Open your web browser and navigate to http://localhost:8000.

Using Docker

  1. You must have Docker and docker compose
  2. docker compose build
  3. docker compose up
  4. execute Django commands(without stop the containers):
    • docker compose exec web python manage.py migrate
    • docker compose exec web python manage.py createsuperuser

Note: Table insertions are done automatically when performing database migrations.

License

This project is licensed under the MIT License.

gamesite's People

Contributors

wladimir3984 avatar ignel462 avatar iswladi avatar

Stargazers

 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.