This is a demo app created for Alpaka's candidate selection process. Live demo here.
First of all, you will need to create a .env.local
file in the project root folder and add the env variable VITE_USE_MSW_MOCKS
. It should look like this:
VITE_USE_MSW_MOCKS=false
then, just run npm i
for installing all the dependencies. Once done, simply run npm run dev
to start the application
This project uses MSW for mocking the endpoints, which can be used for both testing and the development. By setting VITE_USE_MSW_MOCKS=true
you'll be telling the application to used the mocked api instead of the real one
Runs the application in development mode and watch mode for any graphql related change that may result in the regeneration of graphql types
Launches the test runner.
Launches the test runner and collects the coverage of the files.
Launches the test runner in the interactive watch mode.
Run eslint to perform the static analysis of the files, it will throw errors if any of the files do not comply with the rules defined in the .eslintrc.yml
file.
Run Prettier to verify that the files comply with the formatting rules of the code.