Architecture description.
The server side of the file versioning application was developed with Ruby 2.2.3 and Rails 4.2.6
Is based on an initial model containing three tables:
-
file_uploads: uploaded files will be stored here
-
file_version: all the versions of the uploaded files will be here, referenced by the ‘file_upload_id` column
-
comments: For the comments, a table with polymorphic associations was created for the uploaded files and this functionality will soon be added to the file versioning.
The current local storage used is mysql and it has an initial preview hosted storage heroku with PostgreSQL
Instructions to setup and run application.
-
Clone the repository
-
Open the project folder
-
In console type ‘bundle install`
-
Configure your database information in config/database.yml (user, password)
-
Then type ‘rails db:create` and `rails db:create`
-
Then Type ‘rails server` to go up the WEBrick server
Preview: file-versioning.herokuapp.com/