Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axlkun/prueba_fullstack
Prueba técnica fullstack sin frameworks
https://github.com/axlkun/prueba_fullstack
docker javascript mariadb php
Last synced: 16 days ago
JSON representation
Prueba técnica fullstack sin frameworks
- Host: GitHub
- URL: https://github.com/axlkun/prueba_fullstack
- Owner: axlkun
- Created: 2024-03-19T04:37:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-25T18:26:19.000Z (11 months ago)
- Last Synced: 2024-11-19T13:34:21.795Z (3 months ago)
- Topics: docker, javascript, mariadb, php
- Language: PHP
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prueba Fullstack
Prueba fullstack sin frameworks: HTML - CSS - JavaScript - PHP - MariaDB - Docker
## Ejecutar en local
Accede al directorio del proyecto y ejecuta el comando:
```bash
docker compose up -d --build
```Accede a: http://localhost:8080
## PHP Endpoints
### Create User
POST: http://localhost:8080/api/usuario
Body:
```javascript
{
"fullname": "Axel Andres Cruz Cordova",
"email": "[email protected]",
"pass": "123456",
"openid": "13456"
}
```### Update User
PUT: http://localhost:8080/api/usuario?id=1
Body:
```javascript
{
"fullname": "Axel Andres Cruz Cordova",
"email": "[email protected]",
"pass": "nuevopass",
"openid": "13456"
}
```### Get User
GET: http://localhost:8080/api/usuario?id=1
### Delete User
DELETE: http://localhost:8080/api/usuario?id=1
### Create Comment
POST: http://localhost:8080/api/comment
Body:
```javascript
{
"user": 1,
"coment_text": "Hello everyone!",
"likes": 0
}
```### Create Comment
PUT: http://localhost:8080/api/comment
Body:
```javascript
{
"user": 1,
"coment_text": "Hello everyone! this is my new message",
"likes": 0
}
```### Get Comment
GET: http://localhost:8080/api/comment?id=1
### Get All Comments
GET: http://localhost:8080/api/comment/all
### Delete Comment
GET: http://localhost:8080/api/comment?id=1
## Postman Examples[Documentation](https://documenter.getpostman.com/view/25443512/2sA35Bcjtb)
## Author
- [@axlkun](https://www.github.com/axlkun)