Skip to content

agusabas/BackEnd-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BackEnd-App Api Django ACRONEX

Seguir los pasos para ejecutar el servidor

Instalación de Python

https://www.python.org/downloads/

Inslación de NodeJs

https://nodejs.org/en/download/current/

Abrir ventana de comandos en AcronexApi

> cd AcronexApi
> pip install django
> pip install djangorestframework
> pip install django-cors-headers

Ejecución

> python Manage.py runserver

Probar el servicio GET para obtener todos las Máquinas registradas

screenshot

Probar el servicio POST

  • Seleccionar el método POST
  • Teclear la URL http://127.0.0.1:8000/machine​
  • Seleccionar la pestaña Body
  • Seleccionar la opción raw
  • Seleccionar el tipo JSON (application/json)
  • Copiar el JSON que obtuvimos en el GET. No es necesario agregar un "id".
  • Dar clic en el botón Send.

imagen POST

Probar el servicio PUT para modificar el estado una Máquina

  • Selecciona el método a probar, en este caso probaremos el PUT
  • Teclea la URL a probar http://127.0.0.1:8000/machine​
  • Modificar el estado "MachineState" a false/true.
  • Da clic en el botón SEND Imagen PUT

Yapa! Interfaz UI

Interfaz en React Js para probar Funciones GET, POST, PUT, DELETE.

> cd ui

Instalacion (NodeJs v18 Requerida!)

1- Instalar NodeJs -> https://nodejs.org/es/download/current/

  • Importante:Última versión requerida (nótese "current" (ultima version) en la dirección).

Lanzar servidor local

> npm start

screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages