Skip to content

Star Wars themed shipping project in Rails utilizing its MVC architecture.

Notifications You must be signed in to change notification settings

angelr1076/star-shipped

Repository files navigation

Star-Shipped

Designed and built by Mario Borras & Angel Rodriguez

Username: guest@gmail.com,

Password: guestpass

Running the project locally:

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.

Settings Window

Validations

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)

Settings Window

Settings Window

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

Mobile responsive.

Settings Window

Assign ships to jobs:

Each ship can be assigned to multiple jobs Each job can have multiple ships assigned to it

Settings Window Settings Window Settings Window

Other validations:

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

Requirements:

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

About

Star Wars themed shipping project in Rails utilizing its MVC architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published