Coder Social home page Coder Social logo

enviame-test-backend's Introduction

Enviame backend test

Enviame Backend test

Estructura de archivos

La estructura base del proyecto es la siguente:

├── project-enviame (Main API REST empresas)
├── app
│   ├── __init__.py
│   ├── scripts
│   │   └── fake_init_db.py
│   ├── crud.py
│   ├── database.py
│   ├── Dockerfile
│   ├── main.py
│   ├── models.py
│   ├── requirements.txt
│   └── schemas.py
├── Exercises
│   ├── exercise_3
│   │   ├── exercise_3.py
│   │   └── README.md
│   ├── exercise_4
│   │   ├── exercise_4.py
│   │   └── README.md
│   ├── exercise_5
│   │   ├── exercise_5.py
│   │   └── README.md
│   ├── exercise_6
│   │   └── exercise_6.py
│   │   └── README.md
│   └── exercise_7
│   │   ├── exercise_7.py
│   │   └── README.md
├── docker-compose.yml
├── README.md
└── .gitignore

dentro de cada carpeta de exercise hay un readme para cada caso.

Ejercicio 1: Docker + Ejercicio 2: API REST + CRUD

Comenzando 🚀

API Rest creada con

  • Fastapi REST-API
  • Swagger (Documentación)
  • peewee (ORM)
  • Uvicorn - is a lightning-fast ASGI server implementation

Pre-requisitos 📋

Docker >= (version 20.10.1)
docker-compose >= (version 1.26.0)

Instalación 🔧

docker-compose build
docker-compose up

Correr servidor

El servidor quedara corriendo en el puerto 5000

http://0.0.0.0:5000

Agregar registros fake a la DB

docker-compose run app python ./app/scripts/fake_init_db.py

Limpiar registros db

docker-compose run app python ./app/scripts/clean_db.py

Documentación

Para la documentación se implemento mediante Fastapi con swagger. ir a la siguente url:

http://localhost:5000/docs

Documentacion alternativa (provided by ReDoc):

http://127.0.0.1:8000/redoc

enviame-test-backend's People

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.