- Copy
.env.example
to a new file named.env
and fill in theVITE_API_TOKEN
field with a GitHub token. You may also want to replace theVITE_API
field with the endpoint of your own API server. - Run
npm install
to install dependencies. - Start your application with
npm run start
. - Visit http://localhost:3000.
npm install
npm run build:client
npm run build:server
- Set the following environment variables:
PORT
: port to which the server should bindVITE_API
: endpoint URL for the API server, e.g.https://app-hrsei-api.herokuapp.com/api/fec2/hr-rfp
VITE_API_TOKEN
: GitHub tokenPRODUCT_CACHE_SECONDS
: number of seconds before a product's information expires from the server-side cachePRODUCT_CACHE_SIZE
: maximum number of products to store in the cache
- Start your application with
npm run serve
.