Get Started in 3 Steps
Get Paginator running on your local machine in just a few minutes:The application will be available at http://localhost:4200 once the dev server starts.
Accessing the Application
Once the development server is running, open your browser and navigate to:Understanding the Main Page
The home page consists of several key components:Header Component
The header includes:- Application title and branding
- Theme toggle button (switch between light and dark modes)
- Responsive navigation
Filters Component
The filters section allows you to:- Filter by State: Select a specific state to view cities only from that state
- Page Size: Choose how many items to display per page (10, 25, 50, or 100)
Table Component
Displays the city data in a responsive Bootstrap table with columns for:- City name
- State
- Population (if available)
- Other relevant data
Pagination Component
Navigate through pages with:- Previous/Next buttons
- Direct page number selection
- Current page indicator
- Total records count
Key Features to Explore
Theme Switching
Click the theme toggle button in the header to switch between light and dark modes. Your preference is saved in localStorage.
Dynamic Filtering
Use the state dropdown to filter cities. Notice how the URL updates and the table refreshes automatically.
Pagination
Navigate between pages and adjust the page size. The pagination component shows current page and total records.
Responsive Design
Resize your browser or open on mobile to see the responsive layout powered by Bootstrap 5.
How It Works
Paginator uses a reactive approach with RxJS and Angular:Running Tests
Paginator includes comprehensive unit tests with 90%+ code coverage:coverage/ directory.
Building for Production
When you’re ready to build for production:dist/paginator directory with:
- Minified JavaScript bundles
- CSS optimization
- Tree-shaking for smaller bundle sizes
- AOT (Ahead-of-Time) compilation
The production build includes server-side rendering (SSR) support for improved performance and SEO.
Project Structure Overview
Here’s how the code is organized:Next Steps
Now that you have Paginator running, explore the documentation to learn more:Components
Learn about the individual components and how they work together
Services
Understand the service layer and data management
Theming
Customize the theme and styling
Testing
Write and run tests for your features