Skip to content

Servc-account/test-assignment-frontend-angular

Repository files navigation

SerVC Test Assignment Frontend Angular

Assignment should be made with Angular framework.

Just use this repository as a template to generate repo in your account and make an assignment in it.

Create a new branch, make the task in it, then make a Pull Request to the main branch, so we are able to review it and leave some comments if needed.

Task

Application should fetch data from Pokemon API (https://pokeapi.co/docs/v2) and render it:

  • Create a view for the list of the pokemons on the main page with a pagination (site.com/?page=1)
  • Create view for a single pokemon on another page (site.com/{id})

Extras (optional)

Info

There is already created ApiService (src/app/api.service.ts) to make requests to the Pokemon API.

It’s bad practice to use any (https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any) or to not use types at all in typescript, so try to make typings for all your code.

Screenshots in the design folder can be used as a reference for you, but you can make your own design if you want. Just do it with CSS (css modules, scss, tailwind, etc.), not with a predefined component library like MaterialUI or Bootstrap.

Useful Links

Angular CLI - https://angular.io/cli. You can use it generate all kinds of stuff.

Components in Angular - https://angular.io/guide/component-overview

Templates in Angular - https://angular.io/guide/interpolations

Routing in Angular - https://angular.io/guide/router

Typescript object types to make nice typings - https://www.typescriptlang.org/docs/handbook/2/objects.html

Documentation for the API:

Commands

Start development server - npm start or ng serve.

Build project - npm run build or ng build.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published