Skip to content

A "Message of The Day" Sinatra web application meant to illustrate how to interact with files on the computer

License

Notifications You must be signed in to change notification settings

codeunion/message-of-the-day-sinatra

Repository files navigation

Message of The Day App (Sinatra)

The Message of The Day application is meant to illustrate how a web application can interact with files on the computer. The initial version has two features:

  1. Display the contents of message-of-the-day.txt whenever a user visits /message.
  2. Select one of the lines at random from quotes.txt whenever a user visits /quote.

Running Message of The Day

Install The Required Libraries

To install the libraries required for this application, first run the following command:

$ bundle install

Run The Message of The Day App

Once you've installed the required libraries, run the following command:

$ ruby message_app.rb

To stop your application, press Ctrl+c. That means press the "Control" key and the "c" key at the same time.

About

A "Message of The Day" Sinatra web application meant to illustrate how to interact with files on the computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages