This is a Flask-based web application that allows users to upload and view photo galleries, with payments handled using Nano cryptocurrency. The platform offers a unique blend of content sharing and cryptocurrency integration.
live onrender: https://xnotres.onrender.com/ *It will take up to 50 seconds to boot up the server. Nothing is Permanent.
- Gallery Upload: Users can upload multiple images to create a gallery.
- Payment System: Utilizes NanoPay for handling Nano cryptocurrency payments for uploads, viewing galleries, liking, and commenting.
- Moderation: Galleries require moderator approval before becoming publicly visible.
- View Counting: Tracks the number of views for each gallery.
- Dynamic Pricing: Upload fees are calculated based on the total size of uploaded files.
- Delete/Tip Functionality: Users can delete their own galleries or tip other creators.
- Watermarking: Preview images are watermarked automatically.
- Responsive Design: Consistent navbar across all pages for easy navigation.
- Social Features: Users can like galleries and leave comments.
- Image Preview: Click on images to view them in full size.
- Moderator Dashboard: Efficient management of pending galleries with image previews.
- Receives payments for uploads and gallery views.
- Configures application settings (e.g., fees, allowed file types).
- Reviews and approves/denies pending galleries.
- Can delete inappropriate comments.
- Accesses the moderator dashboard for efficient gallery management.
- Upload galleries (payment required).
- View galleries (payment may be required).
- Like galleries and leave comments (small payment required).
- Delete their own galleries.
- Tip other creators.
- Install required packages:
pip install -r requirements.txt
- Set up your configuration in
app.py
- Initialize the database:
flask init-db
- Run the application:
python app.py
Key configuration options in app.py
:
ADMIN_NANO_ADDRESS
: The Nano address for receiving admin payments.MODERATOR_ADDRESSES
: List of Nano addresses with moderator privileges.BASE_FEE
: Base fee for uploads.FEE_PER_MB
: Additional fee per MB of uploaded content.
- Visit the homepage to view approved galleries.
- Use the "Create a Gallery" link to upload new galleries.
- Pay the required fee to view full galleries.
- Like or comment on galleries (requires small Nano payment).
- Moderators can log in to approve or deny pending galleries.
- Gallery creators can delete their galleries or receive tips from other users.
- Moderator authentication using Nano addresses.
- Watermarking of preview images.
- Secure file uploads with allowed extensions.
- Implemented social features (likes and comments).
- Added image modal for full-size viewing.
- Improved moderator dashboard with image previews and gallery cleanup functionality.
- Enhanced delete/tip system for galleries.
- Implemented dynamic fee calculation based on upload size.
- Added user session management for moderators.
- Improved error handling and logging.
- Implement user accounts for better gallery management.
- Add more detailed analytics for gallery creators.
- Enhance the moderation system with more granular controls.
- Implement a tagging system for better content discovery.
- Develop a mobile app for easier access on smartphones.
- Ensure that the
SECRET_KEY
is kept secret and changed in production. - Regularly review and update the list of moderator addresses.
- Implement additional security measures for a production environment.
Contributions to improve the Nano-Powered Gallery are welcome. Please feel free to submit pull requests or open issues for bugs and feature requests.
[Specify your license here]