Git Product home page Git Product logo

beaker's Introduction

beaker

Framework for component searching across multiple suppliers. https://moqups.com/n8_fish/uN9F5hA3

Imgur

To Do

  • Write rspec tests
  • Component class belongs_to supplier
  • Supplier class < User has_many components
    • CSV Upload
    • Editible Supplier Page
    • Only Supplier has access to create/edit/destroy their own components
  • Admin class
  • Searchable database by part_no
  • Tables can be sorted by clicking on table headers

Interested in Contributing?

  • Join us at #rubynoobs on irc.freenode.net
  • Visit our subreddit r/rubynoobs
  • Submit a pull request

Roles

###User

A user lands at the homepage and searches for an alphanumeric part number.

The search result page's table is populated with any products that match the search term.

When a user clicks the part number he is directed to the product page displaying information regarding the product.

When a user clicks on the supplier's name he is directed to the supplier's public page.

When a user clicks on his profile nav icon he is directed to his profile page, where he can change his password & email, as well as view his search history.

###Supplier

A supplier lands at the homepage and clicks 'supplier login' and either logins in or registers as a new supplier.

Once successfully logged in the supplier is redirected to their control panel.

The supplier's control panel allows for the setting of contact information, uploading of inventory (csv only to begin?), as well as viewing comments and ratings attached to their account.

###Admin

An admin logins to '/admin' and enters valid credentials.

He is then redirected to the admin control panel which has the following capabilities:

  • Create/edit/destroy users
  • Create/edit/destroy components
  • Create/edit/destroy suppliers
  • Assign components to suppliers

beaker's People

Contributors

patrickbrown-dev avatar jacobichou avatar eqdw avatar

Stargazers

Patrick avatar  avatar  avatar Peter Indiola avatar

Watchers

James Cloos avatar  avatar Nate Fischer avatar  avatar

Forkers

eqdw jacobichou

beaker's Issues

Export to CSV broken.

Somewhere along the line our "Download CSV" button became broken and now produces a *.csv file with content similar to this:

#<Component:0x0000000437d508>,#<Component:0x0000000437cf90>,#<Component:0x0000000437ca90>,#<Component:0x0000000437c4f0>

No rspec tests

I've embarassingly not implemented a single rspec test in beaker. However, that does not negate the fact that we need to practice writing rspec tests.

I think we might need a ruby on rails mentor for this one?

Architecture

The way it seems to be set up now will work fine. But I don't feel it is very RoR. What I mean is, the current implied architecture doesn't make use of objects.

Manufacturer's inventories consist of different types of parts. Thus, we should make use of the associative properties of Rails - parent objects with children. In this case the parent would be a manufacturer who has many parts(children).

Tests

Get tests setup for current code base.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.