GithubHelp home page GithubHelp logo

michaelchen-lab / menucarlo-frontend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 691 KB

MenuCarlo helps F&B owners optimize their menu using their historical transactions data.

JavaScript 91.97% HTML 5.91% CSS 2.12%
reactjs react tailwindcss recharts create-react-app jwt context-api hooks-api

menucarlo-frontend's Introduction

MenuCarloLogo

MenuCarlo helps F&B owners optimize their menu using their historical transactions data. We make menu engineering and data science techniques accessible to non-technical business owners.

  • Understand Your Business. Instantly learn about how popular/profitable your menu items are. Find out how your revenue changed over time.
  • Optimize Your Menu. Learn how you can modify your menu to maximize profits, using custom simulations run for you.
  • Set and Forget. Connect to your Square account after signing up and never worry about importing data.

Demo

https://menucarlo.netlify.app/

Username: demo

Password: demo2021

How It Works

MenuCarlo's frontend is built using create-react-app & React Hooks, and hosted with Netlify CDN.

  1. Authentication. When a user is authenticated, a JWT access and refresh token is received and stored in localStorage. Whenever an authenticated user wants to make an API call, the user's access token is first verified to be valid, else a new access token will be generated using the refresh token. If the refresh token is invalid, the user is forced to log in again.
  2. Data Layer. REST API calls are handled using axios for auth and data retrieval. React Context is used for state management. AuthContext handles the validation/refreshing of access tokens as mentioned above.
  3. UI & Visualization. Since a utility-first approach gives us both the flexibility of CSS and the convenience of UI frameworks, Tailwind CCS is used as our UI framework. All visualizations in MenuCarlo are generated using Recharts.

Check out MenuCarlo's backend here!

menucarlo-frontend's People

Contributors

michaelchen-lab avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.