Skip to content

This repo is a end-of-course project for degree in System Analist of Computation.

License

Notifications You must be signed in to change notification settings

facurodrij/TrabajoFinal_ASC

Repository files navigation

RESERVÁ

RESERVÁ is a system for managing reservations of courts, events and members in a club. It integrates the API of MercadoPago to manage the payment of the reservations, tickets for events and the payment of the subscription of the members.

Modules

  • Accounts: Contains the configuration of the users of the system.
  • Core: Contains the main configuration of the system.
  • Eventos: Contains the configuration of the events and tickets. Includes handling of categories, tickets and prices.
  • Parameters: Contains the configuration of the parameters of the system.
  • Reservas: Contains the configuration of the reservations. Includes handling of hours, courts and prices.
  • Socios: Contains the configuration of the members of the club. Includes handling of categories, subscriptions and payments.

Requirements

The system requires the following software to be installed:

  • Python 3.8 or higher
  • Git

Framework used:

  • Django 4.1.3

Installation and execution

To install the system, you must follow the following steps:

  1. Clone the repository.
git clone https://github.com/facurodrij/TrabajoFinal_ASC.git
cd TrabajoFinal_ASC
  1. Create a virtual environment and activate it.
python -m venv venv
source venv/bin/activate
  1. Install the requirements.
pip install -r requirements.txt

To run the system, you must follow the following steps:

  1. Activate the virtual environment (if not activated).
source venv/bin/activate
  1. Run migrations.
python manage.py makemigrations
python manage.py migrate
  1. Create a superuser.
python manage.py createsuperuser
  1. Load configuration data.
python manage.py loaddata core/fixtures/*.json eventos/fixtures/*.json parameters/fixtures/*.json socios/fixtures/*.json reservas/fixtures/*.json
  1. Load initial data (optional).
python manage.py loaddata core/dumps/*.json eventos/dumps/*.json socios/dumps/*.json reservas/dumps/*.json
  1. Run the server.
python manage.py runserver

API MercadoPago Configuration

The credentials of the MercadoPago API must be configured in file static/credentials.py, changing the values of the following variables:

  • public_key: Public key of the MercadoPago API.
  • access_token: Access token of the MercadoPago API.

For getting the credentials and more information about the API, visit the following link: MercadoPago Developers

About

This repo is a end-of-course project for degree in System Analist of Computation.

Resources

License

Stars

Watchers

Forks