Skip to content

pe-Gomes/foodExplorer-frontend

Repository files navigation

Food Explorer

Pick the best language for you:

en pt-br

A restaurant website fully integrated with the foodExplorer-backend. The present front-end was created with React and Vite, alongside with Styled Components and some custom components from headlessUI.

The front-end was created to provide integration with the following features:

  • Create users.
  • Create, update and delete products.
  • Upload and delete files for product images.
  • Manage categories for products (drink, meal and dessert).
  • Set user's favorite products.
  • Use JWT Token to authenticate and create user session.
  • Only admin users can manage products.

Users can view the available products, see descriptions, search for ingredients and product's names, add products to cart and favorite products.

Only the admin user can edit, create and delete products.

Deployed front-end

The website can be accessed without local running using the following link:

Please, be aware that it's hosted on limited capacities, thus be ready for some loading time.

Here, in order to access admin functionality you must login with the following credentials:

E-mail Password
pedro@email.com 123

Installation

If you prefer an snappier experience, you can run the front-end application locally. For optimal performance, make sure to also run foodExplorer-backend locally.

After that, simply clone the presente repository, install dependencies and run!

   ## Get into the repo's folder
   cd foodExplorer-frontend

   ## Install node dependencies

   npm install

   ## Run the application with Vite

   npm run dev

Website flow

Login

  https://app.com/ 

View image

Login

Register

  https://app.com/register

View image

Register

Home

  https://app.com/ 

Normal user:

View image

User's home

Admin user:

View image

Admin's home

Product's Details

  https://app.com/details/${id}

Normal user:

View image

User's product details

Admin user:

View image

Admin product details

New product

  https://app.com/new

View image

New product

Edit or delete product

  https://app.com/edit/${id} 

View image

Edit product

Tech Stack

Client: React, Vite, Styled Components, HeadlessUI.

Server: Node, Express, Knex, jsonwebtoken, Jest, Multer, dotenv.

This app was used with an API called foodExplorer-backend: Click here to check out the repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published