Simple Sinatra app to hide a directory under authentication, Heroku-ready - https://sinatra-auth-demo.herokuapp.com/
MIT License
This project offers a simple, ready-to-go Sinatra app to deploy in Heroku to protect a directory of static pages.
Example: imagine you want to protect the content of a website created with Next.js, Hugo or your favourite static site generator. Github doesn't offer this feature or Netlify offers authentication only in their paid plans. Using the project you get authentication for free in the Heroku free tier plan.
This app is ready to use in Heroku.
bundle install
.env
file - check .env-example
rake db:create db:seed && ruby app.rb
Based on blog-sinatra-warden