- Framework/Library: React
- Code: TypeScript
- Build tool: Vite
- Alert popup: SweetAlert2
- Styling: NextUI
- Install
Node 17
orNode 18
npm install
to install dependencies, checkpackage.json
npm run dev
to start local server, checkpackage.json
VITE_FOODGETHER_GRPC_URL
: GRPC URL for realtime order updatesVITE_FOODGETHER_BACKEND_URL
: API URL to interactVITE_BASE_PATH
: Path where the frontend will be hosted
Default value is set at src\config.ts
VITE prefix is required by vite itself. Without VITE prefix, vite won't add the environment variable
Although using realtime order updates is optional, compilation of protobuf is required for completeness
Run this command to compile the protobuf
npx protoc \
--ts_out src/pb/ \
--ts_opt long_type_string \
--proto_path ../proto \
../proto/orders.proto