This project is an implementation of the assignment for Accepted Ltd and was generated with Angular CLI.
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.
(The project structure was inspired by this post.)
-
main-> Contains the bootstrap process of the application, as long as the initial route, necessary providers and the BACKEND_URL injection token. -
app.component-> Contains the basic structure of the app, like the header & the router-outlet template and initializes the app theme. -
shell-> Contains the search and select fields, which handle the data to be displayed in the UI. It also contains an inner router-outlet for the different kinds of data categories, in the shell routes. Thedata-accessfolder contains the interface of the selection. -
sports-> Contains the sports routes & the sports component, whick contains the logic. Theuifolder contains the template of the sports item and thedata-accessfolder contains theSportinterface, as long as theresolverfor prefetching the data. -
leagues-> Contains the leagues routes & the leagues component, whick contains the logic. Theuifolder contains the template of the leagues item and thedata-accessfolder contains theLeagueinterface, as long as theresolverfor prefetching the data. -
countries-> Contains the countries routes & the countries component, whick contains the logic. Theuifolder contains the template of the countries item and thedata-accessfolder contains theCountryinterface, as long as theresolverfor prefetching the data. -
shared-> Contains theheadercomponent, which implements the theme toggle funcionality, thedetail-dialogcomponent, which implements the detail view of thesport-itemin a Material Dialog and thedata-accessfolder, which contains thesports-dbservice, which implements the API data handling and thethemeservice, which handles the light/dark theme.