Coder Social home page Coder Social logo

scrabill / wine-journal Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 155 KB

A Sinatra, MVC application for keeping track of your favorite wines. ๐Ÿท

License: MIT License

Ruby 59.32% HTML 33.72% CSS 6.96%
ruby sinatra flatiron software-engineering mvc

wine-journal's Introduction

Wine Journal

A Sinatra based application for keeping track of your favorite wines. ๐Ÿท

About

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.

Screenshot of Wine Journal welcome page

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.

Installation

  1. Fork the repository
  2. Clone the files to your computer
  3. Run bundle install
  4. Run rake db:migrate
  5. Run shotgun to start the server

Enabling Sessions

To enable sessions, create a .env file in the root directory.

In .env add the following, replacing the string ABC123 with a secret word or string.

SESSION_SECRET="ABC123"

Commit .gitignore

Note: Since the .env file 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 rake db:seed.

The wine bottles created by the seed file will belong to the user with an ID of 1.

Additional Links

wine-journal's People

Contributors

scrabill avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.