Skip to content

JhonyCode/FitnessFastFood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fitness Fast Food

The perfect website to prepare your healthy meals! I used : ReactJS, Mysql and symfony.

Presentation

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.

Getting started

1. Requirements

Please check if you have everything installed, like apache2 and NPM.

1. Installing

Backend

How to run symfony app

composer install

Or check here for more information

then, you will need modify the .env file to your user and your password from MYSQL.

Import SQL file to your DB, then run:

symfony server:start --port=8080

For install frontend you will need:

npm install

then in the backend folder you will need to run :

symfony start:server --port=8080

and then, in the frontend folder you will need to run:

npm start

And also:

npm run build

You are ready to start!

Some endpoints from the project

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published