An open API service indexing awesome lists of open source software.

https://github.com/bittricky/tip-calculator

A simple desktop app to calculate the correct tip and total cost of the bill per person 💸
https://github.com/bittricky/tip-calculator

electron exercise javascript pnpm react tailwindcss typescript vite

Last synced: 3 months ago
JSON representation

A simple desktop app to calculate the correct tip and total cost of the bill per person 💸

Awesome Lists containing this project

README

          

# Tip Calculator

> Simple desktop application to calculate tips on a bill

## Prerequisites

- Node.js (v16 or higher)

- pnpm (to install, run: npm install -g pnpm)

## Setup

Clone the Repository

```sh
git clone
cd tip-calculator
```

## Install Dependencies

```sh
pnpm install
```

## Run the Development Server

```sh
pnpm dev
```

This starts the Vite development server. Open the browser to see the application.

## Start Electron (Desktop Version)

In a separate terminal, run:

```sh
pnpm exec electron .
```

## Build for Production

```sh
pnpm build
```

This bundles the front-end, compiles TypeScript, and packages the Electron app.

Preview the Build

```sh
pnpm preview
```