Skip to content
Simple Sinatra app to hide a directory under authentication, Heroku-ready - https://sinatra-auth-demo.herokuapp.com/
Ruby HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
db
models
static
views
.editorconfig
.env-example
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
app.json
app.rb
config.ru

README.md

Sinatra Auth

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.

DEMO

Using it

This app is ready to use in Heroku.

Deploy

Running locally

  1. Clone the repository
  2. Install dependencies: bundle install
  3. Create your .env file - check .env-example
  4. Run: rake db:create db:seed && ruby app.rb

Based on blog-sinatra-warden

You can’t perform that action at this time.