Giter Site home page Giter Site logo

flask-rest-api-postgresql's Introduction

Contenedor Docker Python

1. Instalación

Para descargar la aplicación del repo, se debe escribir el siguiente comando:

$ git clone https://github.com/FragmentosTemporales/flask-REST-API-Postgresql.git

Instalación de Docker Compose

Para instalar la aplicación debes ejecutar el siguiente código:

null

Variables de entorno

Al interior de la carpeta /Sripts debes crear un documento env.env el cual debe contener las siguiente variables, puedes guiarte con el documento example.env :

FLASK_ENV=dev

JWT_SECRET_KEY=
JWT_ACCESS_TOKEN_EXPIRES_HOURS=
JWT_ACCESS_TOKEN_EXPIRES_DAYS=
RECORDS_PER_PAGE=
SECRET_KEY=

POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
POSTGRES_HOST=
POSTGRES_PORT=

2. Ejecución

Para ejecutar la aplicación debes ingresar el siguiente comando:

python manage.py run

Para ejecutar los test unitarios y flake8

python manage.py test && flake8

3.- ¿Qué estamos ejecutando?

Al ejecutar el manage.py estamos creando una Rest API Flask, la cual se conecta a una base de datos POSTGRESQL. Esta base de datos cuenta con endpoints aplicando un CRUD a un modelo de Usuario.

4.- Bibliografía

null

flask-rest-api-postgresql's People

Contributors

fragmentostemporales avatar

Watchers

 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.