GithubHelp home page GithubHelp logo

vidkun / autotrakr Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 392 KB

An app for keeping track of vehicles, their parts, modifications, service/maintenance records, etc.

Ruby 80.47% JavaScript 0.72% CSS 2.25% HTML 15.69% CoffeeScript 0.87%

autotrakr's Introduction

README

Code ClimateBuild Status

This project is every bit as much to solve my own problem as it is a means for me to learn and explore new technologies, such as mongodb, background workers (sidekiq), and haml. It is also an opportunity for me to strengthen my skills in other areas such as testing, coffeescript/javascript, and other rails patterns.

I enjoy wrenching on my own vehicles and have yet to find a decent solution for enthusiasts to track and manage their personal vehicles. Every solution so far is geared more towards companies that need to manage their fleet of business vehicles.

Autotrakr is intended to allow individuals to add vehicles to their garage and track the maintenance of those vehicles and build a profile to show off these vehicles. Users can add photos to their vehicle records, track what parts and upgrades have been added to the vehicle, add service records to track routine maintenance, add service reminders based on customizeable service intervals, and maintain a list of consumable products perferred for routine maintenance such as part numbers for: oil filters, air filters, fuel filters, different fluids, etc.

Feel free to submit pull requests or open issues if you have any.

autotrakr's People

Contributors

vidkun avatar

Stargazers

Pavel avatar

Watchers

 avatar James Cloos avatar

autotrakr's Issues

To model or not to model?

A 'garage' is a user's public profile and main starting point. Vehicles are added to a user's garage and then the garage show view displays a list of all the user's vehicles for further drill down.

The question then, is should garage be a model that has_many vehicles and belongs_to a user with vehicles belongs_to a garage? Or should garage simply be a controller with a show view that pulls in all vehicles for a user (vehicle belongs_to user and user has_many vehicles)?

A benefit of using a model is that a user's garage would be a document that contains all vehicle documents for a user. A single DB read would load in all of the user's vehicles for display. Not sure if pulling in the vehicles via only a garage controller would result in a single read regardless of number of vehicles as well. Though, I am leaning that way.

Doesn't make much sense to have an entire model for a garage just to handle collecting the user's vehicles.

I do know that I don't want to embed the vehicles into the user's document in order to achieve the single read load listed as a benefit of a garage model. This would result in reading in all of the user's vehicles every time the user instance is loaded (i.e. login) which would be horrible.

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.