Git Product home page Git Product logo

mashgin-webapp's Introduction

Simple Checkout System

This project is part of Mashgin Software Engineer assignment.

You can access the deployed projecy on https://mashgin.victorbalbo.com/ hosted by Vercel.

Technologies used

  • vue 3 as main framework
  • vue-router for routing
  • Pinia for state management between components
  • TypeScript for variables typing
  • PrimeVue for basic components
  • sass-loader as extension language for CSS

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Dependency

This project depends on a backend api running. The project for the backend api can be found here. Also the published API can be found at https://mashgin-api.victorbalbo.com/.

If needed to change the url for the api, you can change the default value for the variable serverUri on the file src/constants.ts; Or create a .env file defining the variable value like the exempla bellow:

VITE_SERVER_URI=http://localhost:3000

Project Setup

This project can run in two ways, using Docker or using Node commands

Docker

To run this project using Docker you will need to have a Docker Engine and Docker CLI installed and running.

Build Image

docker build . -t mashgin-webapp

Run Image as Container

docker run -p 8080:80 mashgin-webapp

This will run the webapp locally though Docker using port 8080. The app will run on http://localhost:8080/

Node CLI

To run this project using Node you will need to have a Node 18+ installed. You can check your node version using the command node -v.

Install Project Dependencies

npm install

Compile and Hot-Reload for Development

npm run dev

This will run the webapp locally using port 8080 (if the port is already been used, the next available port will be used). To make sure wich port will be used, check the output of the npm run dev command.

What this WebApp do

This WebApp fetches a menu from the Mashgin API project, display the menu itens as cards, allows user to add itens to the cart and to checkout the cart, simulating a e-comerce flow. The cart items are stored locally.

mashgin-webapp's People

Contributors

victorbalbo 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.