Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonardofaria/sinatra-auth
Simple Sinatra app to hide a directory under authentication, Heroku-ready - https://sinatra-auth-demo.herokuapp.com/
https://github.com/leonardofaria/sinatra-auth
authentication heroku ruby sinatra tailwindcss
Last synced: 22 days ago
JSON representation
Simple Sinatra app to hide a directory under authentication, Heroku-ready - https://sinatra-auth-demo.herokuapp.com/
- Host: GitHub
- URL: https://github.com/leonardofaria/sinatra-auth
- Owner: leonardofaria
- License: mit
- Created: 2019-11-04T00:13:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T18:43:42.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T17:45:17.155Z (3 months ago)
- Topics: authentication, heroku, ruby, sinatra, tailwindcss
- Language: Ruby
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://sinatra-auth-demo.herokuapp.com/)
## Using it
This app is ready to use in Heroku.
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/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](https://bitbucket.org/pabuisson/blog-sinatra-warden/src/master/)