Let's learn Rails by building a clone of TMWSD.
There's only one: Message
body:text
- *requiredemail:string
- *requiredtoken:string
- *requiredpassword:string
- optional
- Fork this repository and clone it to your development environment
- Create a basic interface using bootstrap classes and components via the bootstrap-sass gem.
- Save the
password
field on theMessage
using Rails built-in encryption librarybcrypt
. - Generate a unique token for the message as a lookup key. We don't want the URL to be easily guessable by id (e.g.
http://localhost:3000/messages/1
). Instead we'll reference the token from the url (e.g.http://localhost:3000/c5d0d7a750a1ec3a
. This can be done using ruby'sSecureRandom
module. - Messages must self-destruct (be destroyed) after being viewed a single time.
- No need for user accounts.
- No need for sending email. We can test and view them manually for the time being by grabbing the message token from the console.
- Try to follow the community driven ruby style guide as much as possible.
Deploy the app on a free Heroku dyno, and provide us with a link to the functional application. https://www.heroku.com/free