- Reactjs
- Fetch api
- Tailwind css
- react hook forms, react-icons, react-router-dom, etc.
- Nodejs for backend
This project was developed in Reactjs and Tailwind for styles. Also a server in nodejs was configured for api rest.
The backend was inspired in http://fakestoreapi.com
The requests are:
method = 'get'
headers = {}
endpoint = https://fakestoreapi.com/products
method = 'get'
headers = {}
endpoint = https://fakestoreapi.com/products/:idProduct
method = 'post'
headers = {}
endpoint = https://fakestoreapi.com/products
body: {
title: 'test product',
price: 13.5,
description: 'lorem ipsum set',
image: 'https://i.pravatar.cc',
category: 'electronic'
}
method = 'put'
headers = {}
endpoint = https://fakestoreapi.com/products/:idProduct
body: {
title: 'test product',
price: 13.5,
description: 'lorem ipsum set',
image: 'https://i.pravatar.cc',
category: 'electronic'
}
method = 'delete'
headers = {}
endpoint = https://fakestoreapi.com/products/:idProduct
Toast was added in order to verify the functionality of api requests.
To run project, needs to clone this repository
Once the repository is cloned, follow these commands in terminal
npm run build
To start the project, type this commandline
npm start
Enjoy the project! 😉