Username: guest@gmail.com,
Clone or download the file. Make sure you're using the correct version of Ruby (2.5.1). Install RVM to manage the version or Ruby you're using. RVM link. First, run 'bundle install' to install all necessary gems. Run 'rails db:migrate' to migrate tables into your database. Once you migrate tables, run 'rails s' or 'rails server' and this will point you to localhost://3000 in the browser. You can now click the link or type that into your browser and view/play with the project.
You can run the rails console by typing 'rails console' in case you need to add or remove from tables manually.
Application is built for shippers to help them organize all of the ships in their fleet, with a user login system using Devise. We built this to further our MVC trinity knowledge and better understand ActiveRecord associations. The application allows users to:
Sign up, login and logout
Create new ships that will associate with the user’s profile. Ships have the following attributes:
Name Amount of containers its able to ship Location (stored as a string)
Create new jobs. Each job has the following attributes:
Description Origin (stored as a string) Destination (stored as a string) Cost Amount of containers needed for job
Assign ships to jobs:
Each ship can be assigned to multiple jobs Each job can have multiple ships assigned to it
Ships: Have a unique name Locations pulled from a valid list of locations (hard-coded)
Jobs:
Have a unique name Origin and destinations are pulled from a valid list of locations (hard-coded)
Uses Rails UJS and Paperclip
User should be able to sign up, login and logout User should be able to add new ships to their profile User should be able to assign jobs to ships Ships and jobs should have properties that are noted above Validations coded - Only users have access to editing and deleting their data. Users that browse and are not logged in to the website can only view jobs, ships and assignments but have no access manipulating user data or constructs. Ship allows for an image using the paperclip gem User can add ships to a job using Rails UJS