feat(api): Add API structure+communication POC
Objective:
Create a structure and a way to communicate with the backend using zod and axios.
What has been done:
- Added
models
directory with sample zod models - Added
api.ts
totypes
which is a succcesfull POC of extracting typescript interfaces from zod models - Added
api
service withuseApiQuery
hook which fetches and validates data from backend - Added
api
service utils and structure of queries
Additionally:
- updated eslint config and installed lacking
eslint-config-prettier
dev package - added
zod
,axios
andaxios-hooks
packages