The perfect website to prepare your healthy meals! I used : ReactJS, Mysql and symfony.
Hello everyone, im Jonathan Mulero and this is my final project for CodeSpace Academy, i maked an webapp for healthy recipes where you can add or comment,valorate,etc.
Please check if you have everything installed, like apache2 and NPM.
composer install
Or check here for more information
then, you will need modify the .env file to your user and your password from MYSQL.
symfony server:start --port=8080
npm install
symfony start:server --port=8080
npm start
npm run build
URL | TYPE | DESCRIPTION | ROLE |
---|---|---|---|
localhost:8080/api/login_check | POST | Just login with user and password and generate token | user |
localhost:8080/api/usuarios | GET | Get all users from database in Json string | Admin |
localhost:8080/api/usuario/new | POST | Register a new user | public access |
localhost:8080/api/usuario/{id} | GET | Complete info of an user | Admin |
localhost:8080/api/categoria | GET | Complete info of categories | Admin |
localhost:8080/api/contacto/new | POST | Send a contact message | public |
localhost:8080/api/contacto/{id}/edit | GET/POST | Edit contact message | Admin |
localhost:8080/api/contacto/{id}/delete | DELETE | Delete contact message | Admin |
localhost:8080/api/publicaciones | GET | Complete info of all posts | public |
localhost:8080/api/publicaciones/{id} | GET | Complete info of one post | public |
localhost:8080/api/publicaciones/delete/{id} | DELETE | Delete the user post | user |
localhost:8080/api/publicaciones/usuario/{id} | GET | Get all post from specific user | user |
localhost:8080/api/usuario/{id}/edit | GET/POST | Edit user info | user |
localhost:8080/api/publicacion/delete/{id} | GET | Delete the post | user |
localhost:8080/api/token/refresh | ANY | Refresh token | any |