The client for UserVote. Built with TypeScript, React, React-Query, and Material UI.
Node.js version 20.x, recommended to use nvm which will automatically use the .nvmrc file to set the correct version of Node.js.
See Installation in the root README.md
- Start the server, see server/README.md
- Navigate to the server docs url in your browser, i.e.
http://localhost:8000/docs
- Click the
/openapi.json
link at the top of the page - Save the file to
client/src/api/openapi.json
, replacing the existing file - From the client root, run
npm run api:generate
to generate the TypeScript types and api methods