authy-example
Version, currently master branch1 version
- master branchlatestJan 5, 2023
github.com/Brodan/crystal-authy-example
An example of 2FA integration with Authy, Crystal, and Amber
Installation
# Add this to your shard.yml
dependencies:
authy-example:
github: Brodan/crystal-authy-example
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.34.0- License
- MIT
- Author
- brodan
- Targets
amberfrom lib/amber/src/amber/cli.crauthy-examplefrom src/authy-example.cr
Dependencies
Runtime Dependencies
- pg~> 0.21.0github: will/crystal-pg
- amber0.34.0github: amberframework/amber
- granite~> 0.20.0github: amberframework/granite
- citrine-i18n~> 0.4.0github: amberframework/citrine-i18n
- quartz_mailer~> 0.6.0github: amberframework/quartz-mailer
- jasper_helpers~> 0.2.5github: amberframework/jasper-helpers
Development Dependencies
- garnet_spec0.2.0github: amberframework/garnet-specdev
README
authy-example
This is a project written using Amber. This project is an example of a two-factor authentication (2FA) implementation using Twilio's Authy. Enjoy! See the full blog post about building this application here.
Getting Started
These instructions will get a copy of this project running on your machine for development and testing purposes.
Please see deployment for notes on deploying the project in production.
Prerequisites
This project requires Crystal (installation guide).
Development
To start your Amber server:
- Install dependencies with
shards install - Build executables with
shards build - Create and migrate your database with
bin/amber db create migrate. Also see creating the database. - Start Amber server with
bin/amber watch
Now you can visit http://localhost:3000/ from your browser.
Getting an error message you need help decoding? Check the Amber troubleshooting guide, post a tagged message on Stack Overflow, or visit Amber on Gitter.
Using Docker? Please check Amber Docker guides.
Tests
To run the test suite:
crystal spec
Contributing
- Fork it ( https://github.com/your-github-user/authy-example/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- brodan - creator, maintainer
License
MIT
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jan 5, 2023
- Crystal
0.34.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Brodan/crystal-authy-example
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1