Electroneum Hackathon Project: PetConnect
Inspiration
The inspiration behind this project stemmed from the desire to encourage responsible pet adoption and care while leveraging blockchain technology for rewards. Many people love pets but may lack the motivation to maintain their well-being. By integrating Electroneum (ETN) rewards, we aim to create an engaging system where users are incentivized to take care of their adopted pets.
Additionally, we saw this as an opportunity to promote Electroneum by demonstrating its real-world applications beyond traditional transactions. By incorporating ETN rewards into a meaningful cause like pet adoption and care, we aimed to increase awareness and adoption of Electroneum within a new user base.
What It Does
PetConnect allows users to adopt virtual pets and take care of them by performing activities such as feeding, playing, and grooming. Each responsible action earns users Electroneum (ETN) rewards, creating a gamified experience that promotes pet well-being. The platform ensures that pet care is both fun and rewarding while spreading awareness about blockchain technology.
How We Built It
1. Backend Setup:
- Initialized an Express.js server.
- Integrated MongoDB to store user, pet, and reward data.
- Established API routes for pet adoption, care tracking, rewards, and user profiles.
2. Blockchain Integration:
- Used Alchemy’s RPC services to manage ETN transactions.
- Implemented a reward distribution system where users earn ETN based on their pet care activities.
3. Frontend Development:
- Developed a React.js UI with a glassmorphism design for a modern aesthetic.
- Created components for pet adoption, care progress, milestones, and rewards tracking.
4. Authentication System:
- Implemented JWT-based authentication to secure user access.
- Enabled user profile management with pet adoption history and reward tracking.
Challenges We Ran Into
- Flask vs. Node.js: Initially, we faced issues running Flask on our local setup, prompting us to switch to Express.js, which proved to be more manageable.
- Real-time Reward Tracking: Ensuring smooth and real-time tracking of pet care activities without overwhelming the system.
- UI Performance Optimization: Managing state efficiently in React.js to prevent unnecessary re-renders and slow load times.
- Security Concerns: Protecting user and pet data from potential threats while ensuring fair reward distribution.
Accomplishments That We're Proud Of
- Successfully integrating Electroneum (ETN) rewards into a pet adoption platform.
- Developing a fully functional, interactive UI with modern glassmorphism design.
- Implementing a secure authentication system using JWT.
- Overcoming challenges with real-time tracking and performance optimization.
What We Learned
Throughout the development of this project, we gained valuable insights into:
- Blockchain Integration: Understanding how to interact with the Electroneum blockchain using Alchemy as our Ethereum RPC provider.
- Express.js & MongoDB: Setting up an efficient backend for managing user data, pet profiles, and rewards.
- React.js & UI Design: Building an interactive front-end with a sleek glassmorphism-style UI for an enhanced user experience.
- Authentication & Security: Implementing JWT authentication for user login and profile management.
- Gamification & User Engagement: Designing a system where users are rewarded for responsible pet care.
What's Next for PetConnect
Looking ahead, we plan to enhance the platform with:
- Leaderboards to showcase top pet caregivers.
- Community Features such as forums and user interactions.
- Automated Pet Care Reminders to encourage engagement.
- Additional Blockchain Integrations for more advanced transactions and rewards.
This project was a rewarding experience that deepened our understanding of blockchain development, web technologies, and user engagement strategies. We successfully built a scalable and user-friendly pet adoption and reward platform that encourages responsible pet care while promoting Electroneum.
Log in or sign up for Devpost to join the conversation.