Quickstart Guide
This guide will walk you through setting up Pagosapp and creating your first payment tracking system. By the end, you’ll have a fully functional payment management dashboard.Prerequisites
Before getting started, ensure you have:- Node.js (version 14 or higher)
- npm or yarn package manager
- A modern web browser (Chrome, Firefox, Safari, or Edge)
Check your Node.js version by running
node --version in your terminal.Installation
Clone the Repository
First, clone the Pagosapp repository to your local machine:This creates a local copy of the project and navigates into the project directory.
Install Dependencies
Install all required packages using npm:This installs:
- React 18.2 and React DOM
- Chakra UI component library
- date-fns for date utilities
- react-datepicker for date selection
- Vite for development and building
- All other required dependencies
Installation typically takes 1-2 minutes depending on your internet connection.
Start the Development Server
Launch the application in development mode:Vite will start the development server and display the local URL:Open the displayed URL in your browser to access Pagosapp.
Understanding the Interface
Before creating your first payment, let’s understand the main components:Month View
The interface displays three months at a time, allowing you to see your payment schedule across multiple periods:Payment Item Colors
Each payment item is color-coded for quick status recognition:- Green - Payment completed
- Orange - Due within 3 days (urgent)
- Red - Overdue
- Gray - Not urgent or no due date set
Navigation Controls
- Anterior (Previous) - View earlier months
- Siguiente (Next) - View later months
- + Button (top center) - Add new payment item
- Reset Button (bottom) - Clear all data and start fresh
Creating Your First Payment
Open the Add Payment Modal
Click the red + button at the top of the screen to open the “Add New Item” modal:
Enter Payment Details
In the modal, you’ll see two fields:Payment NameEnter a descriptive name like:
- “Netflix Subscription”
- “Electric Bill”
- “Car Insurance”
- “Property Tax”
- Mensual - For recurring monthly payments
- Specific Months - For one-time or irregular payments
Selecting “Mensual” automatically disables individual month selection since the payment appears every month.
Choose Payment Type
Decide between two payment types:Monthly Recurring PaymentFor subscriptions or bills that occur every month:Specific Month PaymentFor annual or quarterly payments:
Setting a Due Date
Locate the Payment Item
Find your payment in the month view. Each payment displays:
- Payment name
- Status toggle switch
- Pencil icon for date editing
Open the Date Picker
Click the pencil icon (📝) next to the payment name:A calendar interface will appear.
Select the Due Date
Choose the date when the payment is due. The date picker uses react-datepicker:The selected date is stored in localStorage:
Marking Payments as Paid
Toggle Payment Status
Each payment item has a switch component that toggles between paid/unpaid:Click the switch to mark the payment as complete. The status is immediately saved:
Record Payment Date
After marking a payment as paid, click on the payment item to open the details modal.In the modal, you’ll see:
- Due date (if set)
- Payment date field (appears when payment is marked as paid)
Navigating Between Months
Pagosapp displays three months at a time. Navigate through the year:The app starts by displaying the current month and the surrounding months, making it easy to see your immediate payment obligations.
Viewing Payment Details
Click any payment item to open a detailed modal showing:- Payment name
- Due date (Fecha de vencimiento)
- Payment date (Fecha de pago) - only visible when marked as paid
Data Persistence
All your data is automatically saved to localStorage. TheItemsContext handles synchronization:
- Browser refreshes
- Tab closures
- Application restarts
Resetting the Application
If you want to start fresh:Example Workflow
Here’s a complete example of tracking a monthly subscription:Add Netflix Subscription
- Click the + button
- Enter “Netflix” as the payment name
- Select Mensual from the months menu
- Click Guardar
Set Due Date
- Click the pencil icon on the Netflix payment
- Select the 15th of the month
- Close the date picker
Monitor Status
As the due date approaches:
- 4+ days away: Gray (not urgent)
- 1-3 days away: Orange (approaching)
- Overdue: Red (needs attention)
Mark as Paid
- Toggle the switch to mark as paid
- Click the payment item
- Set the actual payment date
- Close the modal
Building for Production
When you’re ready to deploy Pagosapp:dist directory:
dist folder to any static hosting service:
- Vercel
- Netlify
- GitHub Pages
- AWS S3
- Any web server
Preview Production Build
Test the production build locally:Troubleshooting
Port Already in Use
If port 5173 is occupied:Data Not Persisting
Check that localStorage is enabled in your browser:Dates Not Displaying Correctly
Ensure your system date is set correctly. The app uses local system time for all date calculations.Next Steps
Now that you have Pagosapp running:- Add your real payments - Replace default items with your actual bills and subscriptions
- Set due dates - Configure when each payment is due
- Establish a routine - Check Pagosapp daily or weekly to stay on top of payments
- Customize - Explore the source code to add custom features for your needs
Consider setting Pagosapp as your browser’s new tab page or bookmarking it for quick access.
Support & Resources
- GitHub Repository: github.com/Sagthy/appPagos
- Report Issues: Open an issue
- Contribute: Fork the repository and submit pull requests