Skip to content

pallendes/pokedex-challenge

Repository files navigation

Alpakas Challenge

This is a demo app created for Alpaka's candidate selection process. Live demo here.

Instructions

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

Main NPM Scripts

npm run dev:gql

Runs the application in development mode and watch mode for any graphql related change that may result in the regeneration of graphql types

npm run test

Launches the test runner.

npm run test

Launches the test runner and collects the coverage of the files.

npm run test:watch

Launches the test runner in the interactive watch mode.

npm run lint

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.

npm run lint

Run Prettier to verify that the files comply with the formatting rules of the code.

About

Alpakas technical challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published