Skip to content

LuisCaballe/grandma-cookbook-front

Repository files navigation

Grandma's Cookbook

Testing Quality Gate Status Coverage Technical Debt Netlify Status

Introduction

Grandma's Cookbook is an application that allows users to create and manage a private collection of favourite recipes, preserving their culinary heritage.

Enjoy your meal!

Visit Grandma's Cookbook

Use the following credentials for testing purposes: *

Username: admin
Password: admin

* Please note that the custom API rest is hosted on a free render.com account, so please be patient when logging in (you will have to wait about a minute).

Grandma's Cookbook mobile screenshots

Grandma's Cookbook desktop screenshot

Features

  • Add new recipes to the collection.
  • Delete recipes from the collection.
  • Update recipes from the collection.
  • View detailed information about each recipe.
  • Search for recipes by cooking difficulty.
  • Secure authentication using JSON web tokens.

Tech stack

Grandma's Cookbook uses the MERN technology stack, which consists of MongoDB, Express.js, React, and Node.js. And it is built using the following technologies:

Build with:

TypeScript React Redux Toolkit React Router Axios styled-components

Tested with:

Vitest React Testing Library MSW

Good Practices Tools:

ESLint Husky Prettier

Lighthouse metrics:

Lighthouse Performance Badge Lighthouse Accessibility Badge Lighthouse Best Practices Badge Lighthouse SEO Badge

For a full list of dependencies and scripts used, see the package.json file.

Setup

To set up and run Grandma's Cookbook in your local environment, follow these steps:

Note: In order to retrieve data, you need to set up and run the Grandma's Cookbook API as well. The API can be found at https://github.com/LuisCaballe/grandma-cookbook-back.git Please follow the instructions in the API repository to run it in your local environment.

  1. Clone this repository to your choosen local directory:

    git clone https://github.com/LuisCaballe/grandma-cookbook-front.git
    
  2. Install the dependencies:

    npm install
    
  3. Grandma's Cookbook requires environment variables to be set to work properly. To configure the required environment variables, follow the steps below:

    3.1. Create a new file named .env in the root directory of the project.

    3.2. Open the .env file and add the following environment variables:

    VITE_APP_URL=http://localhost:4000
    

    Or you can change the value of this variable to the URL + port where you want to serve the above-mentioned API.

  4. Start the application in development mode:

    npm run dev
    
  5. Open your browser and visit the provided URL to access to Grandma's Cookbook application.

  6. Use the following credentials for testing purposes:

    Username: admin
    Password: admin
    

Author

GitHub Badge LinkedIn Badge

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages