This is a web application skeleton with a minimal user authentication scheme built on Sinatra. It uses the bcrypt password hashing algorithm to avoid storing passwords in plaintext and includes the ability for a user to register, log in, edit profile information, and log out. No frontend styles are included to make it frontend framework agnostic.
This was built as a learning exercise to help understand the basics of user authentication and is not intended to be used in production. For production-grade applications, please consider using one of the following popular Ruby solutions instead:
- Fetch gems using bundler:
bundle install
- Create database:
bundle exec rake db:create
- Run migrations:
bundle exec rake db:migrate
- Start Shotgun server:
bundle exec shotgun config.ru
Using a web browser, navigate to http://localhost:9393
- Fork this repo
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a pull request