Coder Social home page Coder Social logo

kacevoid / canna-calc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkingsman/canna-calc

0.0 0.0 0.0 2.58 MB

Repository for Canna-Calc.com

Home Page: https://Canna-Calc.com

License: MIT License

Shell 0.01% JavaScript 94.90% CSS 1.46% HTML 3.40% SCSS 0.23%

canna-calc's Introduction

Canna-Calc

The open source toolbox for growers large and small!

PR's and improvements very welcome.

Start in index.js and working your way backwards through components should give you a pretty good picture of how things fit together -- long story short, duplicate a calculator, import it into calculator_container.jsx, and make a PR. Helpers for inputs and units should make life easy, and while the props on those aren't fantastically documented, it should be pretty trivial to intuit what they're doing from the source in io.jsx.

Development

Installation:

$ git clone https://github.com/jkingsman/Canna-Calc.git
$ yarn

Serve for development (hot reload enabled in dev; check your terminal output for bound address and port, typically http://localhost:8080):

$ yarn watch

Please consider removing the Google Analytics tracking code from index.html for development if you're serving from a domain other than localhost; I don't think GA will register hits from another domain, but I'd rather be safe than sorry and get thousands of garbage hits haha (also, GA is .just used as a glorified hit counter and so I can see which calculators are getting the most use/could benefit people the most from additional attention or tuning)

Canna-Calc is served from dist which is an ignored directory and populated by the CI tool on build, but if you want to make a local bundle for testing, you can put a final static build in the dist folder with:

$ yarn build

Before submitting a PR, please make sure you yarn lint to beautify (Prettier) the code in place and keep a consistent style.

Spirit of the Calculators

It's important that these calculators remain democratized (open source), objective (no potentially competing financial interests or obligations), and empirical (math is not subjective). In this vein:

  • I'm willing to add thank-you links to the bottom in an unobtrusive way in return for promotion, but not in return for money

  • I'm only interested in calculators that have one right answer (e.g. amount of CO2 a plant needs is debatable, but how much flow you need to get from 300 to 1500ppm is not; how many mg belongs in an edible serving is super variable, but how much plant matter at X% THC to get to N mg/serving is not, etc.), so calculators should have firm science backing them up

  • Canna-Calc is about helping with math, not pushing product -- answers should be in objective, industry standard units, and not in a product (e.g. Canna-Calc will tell you you need 300 watts of lights, not that you need GROWCORP INC. AMAZING 300W HID LAMP, nor suggesting it as an option) -- that's for the user to decide; we just offer facts.

canna-calc's People

Contributors

jkingsman avatar dependabot-preview[bot] avatar

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.