I want people to register, list their books, share a location, and request books from other members. I know basic embedded programming but am new to web apps. Where should I start, and can I host it for free?
How should I build and host a free book-sharing site?
Answers
This is a web app rather than just a static site. You need somewhere to run the interface, a database for accounts and listings, and server-side logic or managed services for requests and permissions.
Flask is a reasonable place to start if you want a lightweight Python framework. Build the smallest version first: registration, adding and editing a book, browsing listings, and sending a request. Notifications and borrowing eligibility rules can come later.
Reply to this answer
Cloudflare, Vercel, and Netlify have free hosting tiers worth comparing. A provider's free site address can avoid the cost of a custom domain, but check the current limits and whether the database, authentication, and any server-side functions you need are also covered.
Free is a starting point, not a guarantee that every part stays free as usage grows. Write down the features you need before picking the host, then check how each piece fits together.
Reply to this answer
Be careful with location data. Decide whether members really need to see an exact location or whether a broader area would do, and make clear who can see it. Also decide who handles problematic requests and who is responsible for the stored data.
If you use Supabase or another database accessible from the browser, don't treat a browser-visible key as a secret. Enable row-level security where applicable and write policies for each table so members can only read and change what they should. Test those rules with different accounts, including a signed-out user.
Reply to this answer
AI can help sketch out code and explain unfamiliar web concepts, but a working-looking page isn't proof that logins and data access are safe. Use it as a helper, then review and test the account and permission logic yourself.
Reply to this answer
You could also run it on a computer at home, even a low-powered one. That avoids a hosting subscription, but the machine needs to stay on and you'll still have electricity and internet costs. For a public site, a hosted service is probably simpler to start with.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Nexlin+8w:
Would notifications when a new book is added be possible later?
_n45+parcelwhisk.7:
Yes. You could add notification preferences and a way to send messages later, though the service you choose may have its own limits or costs.