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.
- 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.
The system requires the following software to be installed:
- Python 3.8 or higher
- Git
Framework used:
- Django 4.1.3
To install the system, you must follow the following steps:
- Clone the repository.
git clone https://github.com/facurodrij/TrabajoFinal_ASC.git
cd TrabajoFinal_ASC
- Create a virtual environment and activate it.
python -m venv venv
source venv/bin/activate
- Install the requirements.
pip install -r requirements.txt
To run the system, you must follow the following steps:
- Activate the virtual environment (if not activated).
source venv/bin/activate
- Run migrations.
python manage.py makemigrations
python manage.py migrate
- Create a superuser.
python manage.py createsuperuser
- Load configuration data.
python manage.py loaddata core/fixtures/*.json eventos/fixtures/*.json parameters/fixtures/*.json socios/fixtures/*.json reservas/fixtures/*.json
- Load initial data (optional).
python manage.py loaddata core/dumps/*.json eventos/dumps/*.json socios/dumps/*.json reservas/dumps/*.json
- Run the server.
python manage.py runserver
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