https://github.com/geffrerson7/movie-api-django
API para ecommerce de alquiler de peliculas
https://github.com/geffrerson7/movie-api-django
django-rest-framework docker psotgresql python simplejwt swagger
Last synced: about 2 months ago
JSON representation
API para ecommerce de alquiler de peliculas
- Host: GitHub
- URL: https://github.com/geffrerson7/movie-api-django
- Owner: Geffrerson7
- Created: 2023-03-02T18:53:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T03:36:05.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T10:49:55.347Z (about 1 year ago)
- Topics: django-rest-framework, docker, psotgresql, python, simplejwt, swagger
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MOVIE-API-DJANGO
## Descripción
API para ecommerce de alquiler de peliculas. Está hecho con django-rest-framework y tiene las funciones de sign-in, sign-up y login de usuarios y también creación de películas.
## ERD

## Instalación local del proyecto
Clonar el repositorio
```bash
$ git clone https://github.com/Geffrerson7/MOVIE-API-DJANGO.git
```
Ir al directorio al proyecto
```bash
$ cd MOVIE-API-DJANGO
```
Crear un entorno virtual
```sh
$ virtualenv venv
```
Activar el entorno virtual
```sh
# windows
$ source venv/Scripts/activate
# Linux
$ source venv/bin/activate
```
Luego instalar las librerias:
```sh
(venv)$ pip install -r requirements.txt
```
Luego, realizamos las migraciones.
```sh
(venv) $ python manage.py makemigrations
(venv) $ python manage.py migrate
```
Una vez concluido, procedemos a iniciar la app
```sh
(env)$ python manage.py runserver
```
Y navegar a
```sh
http://127.0.0.1:8000/
```
## Instalación en Docker del proyecto
Clonar el repositorio
```bash
$ git clone https://github.com/Geffrerson7/MOVIE-API-DJANGO.git
```
Ir al directorio al proyecto
```bash
$ cd MOVIE-API-DJANGO
```
Ejecutar el comando
```sh
$ docker-compose up
```
Y navegar a
```sh
http://127.0.0.1:8000/
```
## Tecnologías y lenguajes utilizados
* **Python** (v. 3.10.7) [Source](https://www.python.org/)
* **Django** (v. 4.1.7) [Source](https://www.djangoproject.com/)
* **Django Rest Framework** (v. 3.14.0) [Source](https://www.django-rest-framework.org/)
* **django-cors-headers** (v. 3.14.0) [Source](https://pypi.org/project/django-cors-headers/)
* **Simple JWT** (v. 5.2.2) [Source](https://django-rest-framework-simplejwt.readthedocs.io/en/latest/)
* **drf-yasg** (v. 1.21.5) [Source](https://drf-yasg.readthedocs.io/en/stable/)
## Autor
- [Gefferson Max Casasola Huamancusi](https://www.github.com/Geffrerson7)