Boilerplate Angular project to use ng-dfservice
The purpose of this project is to provide a guidance and good practices for the use of ng-dfservice in an Angular project.
These are only suggestions. I hope you do better than this :)
- Follow the instructions on ng-dfservice repo page to know how to properly configure you environment, set up you dev and prod instances, inject DFService and access your API.
- Create a
dfdatastores
folder to place all your datastores. - Create a
dfmodels
folder to place all you model classes. - Create a constant in a
myDataStores.ts
file to resume a list of all datastores you have. Then use this file to simplify providing your datastores inapp.module.ts
. In this boilerplate project this file is stored in thedfdatastores
folder.