Built with Angular, Firebase, NgRx, and integrated REST APIs β deployed on Firebase Hosting
- π User Authentication with Firebase (Google + Email)
- π Google Maps & Directions API for media-based landmark lookup
- π NYT Books API for Best Sellers & Book Reviews
- π§Ύ Personal Collection Manager β Add, edit, and delete media items
- β‘ NgRx State Management for scalable and reactive data flow
- π¨ Responsive UI with Angular Material + Bootstrap 5
- βοΈ Cloud-hosted via Firebase for real-time access and deployment
User interactions (e.g. searches, collection edits, profile updates) are event-driven and can be extended to track usage metrics. These logs simulate behavioral data that can be used for KPIs, retention analysis, or ML-based personalization.
| Frontend | Backend | APIs / Integrations | DevOps / Hosting |
|---|---|---|---|
| Angular 13 | Firebase Firestore | Google Maps, NYTimes Books | Firebase Hosting |
| TypeScript | Firebase Auth | NgRx, RxJS, Chart.js | GitHub + CLI Deploy |
βThe combination of NgRx and Firebase Firestore simulates a reactive event pipeline β user actions trigger state changes and DB syncs, modeling ingestion + transformation + storage flow.
I created BookCompany to explore building a scalable, full-stack Angular application with real-world API integrations, authentication flows, and dynamic state management β all deployed serverlessly with Firebase. I wanted to simulate a professional-grade project architecture from end to end.
Collected user behavior and media activity can be extended into ML pipelines for recommendations, engagement scoring, or media classification. This structure supports supervised and unsupervised modeling workflows via exportable Firestore logs.
Click any section below to expand screenshots of BookCompany's APIs, authentication flows, and media management system.
Set up BookCompany locally or in the cloud in just a few steps. This guide walks you through all dependencies, configuration files, and deployment requirements.
Set up the following tools and accounts:
- β Node.js & npm
- β Firebase Console project (Firestore, Hosting, Authentication)
- β Google Cloud Console with Maps JavaScript API and Places API enabled
- β NYTimes Developer Account for the Books API
- β
Angular CLI
npm install -g @angular/cli
-
Clone the Repository
git clone https://github.com/bravorod/bookcompany.git cd bookcompany -
Install Dependencies
npm install
-
Configure Environment Variables
Create the following files inside
src/environments/:environment.tsenvironment.prod.ts
Paste this example inside each:
export const environment = { production: false, firebaseConfig: { apiKey: 'YOUR_FIREBASE_API_KEY', authDomain: 'your-project.firebaseapp.com', projectId: 'your-project-id', storageBucket: 'your-project.appspot.com', messagingSenderId: 'YOUR_SENDER_ID', appId: 'YOUR_APP_ID' }, nytApiKey: 'YOUR_NYT_BOOKS_API_KEY', googleMapsApiKey: 'YOUR_GOOGLE_MAPS_API_KEY' };
-
Run the App Locally
ng serve
-
Login and Initalize Firebase CLI and Initalize
firebase login firebase init
Enable:
- Hosting
- Firestore
- Authentication
-
Build the App
ng build --prod
-
Deploy to Firebase
firebase deploy
β Troubleshooting
-
β Error:
Firebase: Missing config object
Fix: Make sure yourenvironment.tsandenvironment.prod.tsare correctly configured with valid Firebase keys. -
β Error: Google Maps not loading
Fix: make sure that both the Maps JavaScript API and Places API are enabled in your Google Cloud Console and that billing is set up. -
β Error:
Authentication errorduring login
Fix: Make sure you've enabled Email/Password, Google, or Twitter authentication in the Firebase console. -
β Error:
ng: command not found
Fix: Install Angular CLI globally:npm install -g @angular/cli
ng testdescribe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [LoginComponent],
imports: [ReactiveFormsModule]
}).compileComponents();
fixture = TestBed.createComponent(LoginComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should render login form', () => {
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('form')).toBeTruthy();
});
it('should invalidate the form when empty', () => {
expect(component.loginForm.valid).toBeFalse();
});
});ng e2eit('should navigate to the login page and show login form', async () => {
await page.navigateTo('/login');
expect(await page.getLoginFormTitle()).toEqual('Sign In');
});This project can be integrated with GitHub Actions to automate testing, building, and deployment to Firebase Hosting. Workflow files (.yml) and configuration templates can be added to support continuous delivery and cloud deployment pipelines.
- NYT Books API
- Google Maps Platform
- Angular, Firebase & NgRx community docs
Rodrigo E. Bravo
π« [email protected]

