GithubHelp home page GithubHelp logo

allergyapp's Introduction

AllergyApp

Notes for Developers

  • Words are scary and there are a lot of them here. How do I get started?

    • Clone this repo to a local directory.
    • Run npm install in this local directory to install all the Node.js dependencies according to the package.json file.
    • Edit VSCode settings file.
    • Install VSCode extensions.
  • This was initially created using the npm package create-react-app. Information about its configuration and gotchas are available at that link.

    • Note: create-react-app bundles Webpack along with Jest (testing) and Enzyme (testing). If/when we get to the stage of needing to edit these configurations, we'll need to eject this app and then we'll get a dumpster full of configuration files to work with. Note that eject is a one-way process.
  • See the GH_Docs folder for some quick configuration information (e.g. enabling Git Flow in GitKraken)

  • Bundled some useful files/directories that will help us in code uniformity and quality. These are

    • .eslintrc file for configurating ES Linting rules (this will tell you if you initialize a variable you don't use, etc.)
    • .travis.yml file for connecting up to a Travis-CI service. I'll work with Chuy on setting this up, as the free version isn't able to be used on a repo that you don't own.
    • .vscode directory for launching the Chrome debugging plugin for VSCode
  • Added some devDependencies to the package.json file. These are used for code assurance (eslint), testing (codecov and mocha), and Doing Future Things(TM) (react-scripts).

    "devDependencies": {
      "ajv": "^5.5.0",
      "codecov": "^3.0.0",
      "eslint": "^4.12.1",
      "eslint-config-airbnb": "^16.1.0",
      "eslint-config-react-app": "^2.0.1",
      "eslint-plugin-import": "^2.8.0",
      "eslint-plugin-jsx-a11y": "^5.1.1",
      "eslint-plugin-react": "^7.5.1",
      "eslint-plugin-security": "^1.4.0",
      "eslint-watch": "^3.1.3",
      "mocha": "^4.0.1"
    },
  • Added a dependency to the package.json file. We'll need this for our .env file that should never go to the GitHub repo, which we'll use to hold at least two API configuration variables.

    "dotenv": "^4.0.0",
    "lodash": "^4.17.4",

VSCode Settings File

  • Here is a VSCode Settings file (File -> Preferences -> Settings) which may be useful. It handles the linting options as well as formatting on save. If we're not using the same prettifier or not formatting on save, we'll suddenly have thousands of changes with each push as each space or comma placement/omission will count as another change. We will save tons of pain by using this:

    {
      "editor.formatOnSave": true,
      "window.zoomLevel": 0,
      "editor.wordWrap": "on",
      "editor.fontSize": 16,
      "prettier.eslintIntegration": true,
      "eslint.enable": true,
      "eslint.packageManager": "npm",
      "eslint.alwaysShowStatus": true,
      "eslint.options": { "configFile": ".eslintrc" },
      "eslint.run": "onType",
      "eslint.validate": ["javascript", "javascriptreact"]
    }

VSCode Extensions

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.