This repository is a monorepo which leverages pnpm for dependency management.
To begin, please install pnpm
:
$ npm install pnpm -g
$ pnpm recursive install
A .env
file needs to be placed in the root directory, including variables from this template:
# IPStack API Key
IPSTACK_KEY=xxxxxxxxxxxxxxxxxxxxx
# Google Maps API Key
VITE_GOOGLE_MAPS_KEY=xxxxxxxxxxxxxxxx
# Password for the application
API_KEY=xxxxxxxxxxxxxx
pnpm run api
Uses the @hawaii-bus-plus/api-gen
package to generate an API file, which is placed in the client package's public directory.
pnpm recursive test
Runs the test script in every single package.
pnpm run dev
Uses the @hawaii-bus-plus/client
package to start a server on localhost:3000
. Vite is used for the dev server and automatically deals with bundling.