This project was generated with Angular CLI version 18.0.1.
Aquest lliurament està basat en una prova tècnica d'una gran empresa del sector e-commerce, que busca desenvolupadors/es front-end en la ciutat de Barcelona. La prova tècnica consisteix a: consumir les dades d'una API, mostrar-les en una pantalla a través d'un llistat i mostrar el detall de cada ítem del llistat.
Coneixements previs:
Seguir un exemple d’una bona arquitectura com per exemple: -> Angular 15/16 Free Course #1 - Create Base Project Structure POSTMAN per consumir APIs Gestió de Guard per protegir rutes Routing Serveis Token de tipus JWT
- Clona el repositori.
$ git clone https://github.com/PacMM79/S7--StarWars.git
- Executa npm i per instal.lar totes les dependencies.
npm i
- Executa ng serve per construir el projecte de Angular e iniciar el servidor localment.
ng serve
- Executa npx json-server-auth db.json per iniciar el backend.
npx json-server-auth db.json
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.