jozr / csv-uploader-1

first attempt using Sinatra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSV Uploader

Novice attempt, kept for personal reference...

##Tools Ruby 2.1.2
ActiveRecord
Rails 4.1.6
PostgreSQL
Sinatra

##Setup

Make sure you've installed all the tools.

Install all the dependencies:

$ bundle install

Set up the databases on your local machine:

$ createdb deal_a_day
$ rake db:schema:load

Start the sinatra server within the root:

$ ruby main.rb

Now, it should be available at http://localhost:4567.

RSpec tests can also be run in the terminal root:

$ rspec

##Login

Logging in and out of application is straightforward. To login, click the Login link and submit your information into the form. To logout, click the Logout link. Registration and verification are not included.

I simplified the login process to only forbid file uploads from unlogged users.

##License MIT

About

first attempt using Sinatra


Languages

Language:Ruby 90.0%Language:HTML 10.0%