Footbook is a simple application that allows you to navigate the football leagues and discover the main players.
Run npm run serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run generate:documentation
to build the doc, you can use the superb (sudo) npm i -g http-server
and read the doc with http-server documentation
.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run npm run test
to execute the unit tests via Karma.
Headless version for running tests can be executed with npm run test:headless
.
Run npm run e2e
to execute the end-to-end tests via Protractor.
Headless version for running end-to-end tests can be executed with npm run e2e:headless
.
This project run under gitlab-ci and chain all test, lint and build stages. It is recommended to run locally npm run before:push
before pushing on master.
It will emulate the pipeline and make sure all is ok and pipeline will not fail.
For tests, country scoping is not activated, you can uncomment the L.60 in file src/app/services/league.service.ts
to choose a scope for country, exposed as France
by default in src/environments/environment.ts
.