Skip to content

Repository files navigation

TECNOLOGIA

  • PHP 8.2.12
  • Laravel 12.0
  • Mysql

DESPLIEGUE

  1. Ejecutar en la consola el comando copy .env.example .env

  2. Descargar librerias composer install

  3. Generar la llave con php artisan key:generate

CONFIGURACION .env

– Base de datos – Credenciales necesarias

Scrip database

CREATE DATABASE api_php;
  1. Ejecutar migraciones php artisan migrate

  2. php artisan serve

ENDPOINTS

http://localhost:8000/api/users

  • POST -> Registrar usuario

http://localhost:8000/api/users/login

  • POST -> Iniciar sesion

JSON USUARIO

{
    "username":"pedro",
    "password":"123456*"
}

About

Este proyecto hace parte de una actividad Sena. Creación de un endpoint

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages