A Sinatra based application for keeping track of your favorite wines.
I have a habit of not taking very good notes.
I assume that I will remember something. Like that really good wine I bought that one time. Don't you remember? The one with the...label?
So, I built an app for that. Welcome to Wine Journal.
Details on my process, lessons learned and plans for the future can be found in my blog post Building a Wine Journal Application with Sinatra.
- Fork the repository
- Clone the files to your computer
shotgunto start the server
To enable sessions, create a
.env file in the root directory.
.env add the following, replacing the string
ABC123 with a secret word or string.
Note: Since the
.envfile contains sensitive information, it should not be tracked, committed or push to Github. Please see this post on Hiding Sensitive Information with Environmental Variables in Ruby for more information.
Seeding the Database
Wine journal is now ready to use!
If you want to pre-populate the database with wine bottles (some of my personal favorites) run
The wine bottles created by the seed file will belong to the user with an ID of 1.