Baithkee News Prompt

I want to build a mobile-first local news web application using Blogger (frontend) and Google Sheets with Google Apps Script (backend). The platform name is Baithkee. The system should work as a fully automated loop system, meaning there will be no manual admin management. The community of users will manage the platform automatically through reporting and interaction. Here are the core requirements: 

 1. The website should be a single-page mobile-first interface designed primarily for smartphone users. 

 2. The main screen should display news headlines in horizontal strips (news strips). Only the headline text should be visible initially.

A.) The strip should show how many seconds ago the news was posted.

3. When a user clicks a headline, a popup window should open showing the full news text, and the text area must be scrollable.

A.) The publisher's name should be displayed at the top, and the number of seconds ago the news was posted should also be visible. The live location should also be visible, Where this news was posted from, and there should also be a button to report it.

B.) There should be a views count, how many views have been received till now, it should be like the account on YouTube, I mean, like there should be different symbols for million and hundred million. There should be different symbols for 1000, lakh and crore. For example 1k, 100k, etc.


4. News posts must be text-only (no images or videos).

5. News should only remain visible for 24 hours. After 24 hours, the system must automatically delete the news from the database.

6. The system should use geolocation. Users should only see news that was posted within a 5 kilometer radius of their current location.

7. Users should be able to change the distance range manually if they want to see news from a larger area. 

A.) There should be a drop down menu through which the cut off distance can be set and on submitting it, the area covered by the news will be visible i.e. whatever news is available within that distance, it will start showing.

8. The platform should include a view counting system. News with higher views should automatically move to the top of the news list. 

9. There should be a report system. If 5 different users report a news post, the system should automatically delete that news. 

A.) You must login to report. 

10. Only logged-in users (Google account login) should be able to publish news. However, reading news should not require login.

11. If a user tries to publish news without logging in, a popup message should appear, and after 1 second the system should automatically redirect to Google login.

12. When a user publishes news, the system should automatically fetch and store: - User's Google profile name - User's Google profile photo - Email ID

A.) Where the details will be visible in the pop up, his photo and username should be shown there, the email ID will not be shown.

13. The interface should include a floating plus (+) button. When clicked, a stylish popup form should open allowing the user to publish news. 

14. The system should limit the visible news list to a maximum of 100 headlines. And when it reaches 100 headlines, then another 100 next headlines will be displayed.

15. The database should be managed using Google Sheets, and the backend logic should run through Google Apps Script API.

16. The entire system should run automatically without manual moderation, relying on: - report voting - time-based deletion - view ranking

17. The UI should be simple, fast, and optimized for mobile, similar to a lightweight social platform.

18. The system should be designed in a way that it can scale to many users posting local news simultaneously.

Please provide: - Complete frontend HTML/CSS/JavaScript code - Google Apps Script backend code - Google Sheet structure - API integration - Clean and well-commented code - Mobile-first responsive design

इस ब्लॉग से लोकप्रिय पोस्ट

High Level Advance Random English Words

The History of the World – A Simple and Long Article for English Learners

1. The Art of Self-Discipline