Welcome to GameSite, a video game store where you can find games from different categories. We are proud to present our project to you.
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.
This repository is used to track our work during the bimester.
- PROGRAMACION WEB_002A
- DANIEL B.
- WLADIMIR U.
- Create an account on our web application.
- Click on 'get API key'.
- Copy the token.
- Access with Postman.
- Take this image as a reference:
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. |
- 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/
.
To get started with this project, you'll need to have a local development environment set up.
- Python 3.11.3(recommended)
- Create a database with the user "USR_GAMESITE" and password "duoc123456".
- Clone this repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
. - Run
python manage.py migrate
to apply database migrations. - Create a superuser by running
python manage.py createsuperuser
. - Run the Django development server by running
python manage.py runserver
. - Open your web browser and navigate to
http://localhost:8000
.
- You must have Docker and docker compose
- docker compose build
- docker compose up
- 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.
This project is licensed under the MIT License.