To develop and refine third-party
@angular modules by combining their use cases in an "anything goes" development environment.
TABLE OF CONTENTS
- Live Demo
- Module: auth
- Module: content-builder
- Module: dual-backend
- Module: pages
- Module: users
- Developer Guide
A complete user authentication solution using
JWT which includes:
- Account activation
- Password recovery
- Account unlock instructions (too many failed login attempts)
- E-mail, password, username changing capability
Content elements currently supported are:
- Text (h1, h2, h3, p)
- Quote (w/ author)
- Youtube (embedded video)
localstorage on the web browser as a database through custom service
LocalStorageDatabase to load & manipulate data objects in memory.
Loads mock data from
/src/assets into memory as initial database. Users are generated from top 100 first and last names randomly. Pages are loaded from
HttpClient requests, processing them if their respective route exits, otherwise passing them through to the backend untouched.
This allows deployment on
Github Pages to mimic actual backend in demo without a real backend.
Module can be removed and all
HttpClient requests to an actual backend will passthrough as expected.
The home page is created with
content-builder, so can other pages. Explore
CRUD aspects of pages.
Much like many social media platforms, users can
be followed by other users. Users also have a profile page with public content they wish to display.
To get started, clone this repo, then run:
This will install all software prerequisites to the
ng serve for a dev server. Navigate to
The app will automatically reload if you change any of the source files.
ng generate component component-name to generate a new component.
You can also use
ng generate directive|pipe|service|class|module.
ng build to build the project. The build artifacts will be stored in the
-prod flag for a production build.
Running Unit Tests
ng test to execute the unit tests via Karma.
Running End-to-end Tests
ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via
Deploying to Github Pages
Install angular-gh-pages-deploy script.
Then, from within this path, run:
To get more help on the Angular CLI use
ng help or go check out the Angular CLI README.