{"id":21995141,"url":"https://github.com/redhataccess/jvmpeg","last_synced_at":"2025-04-30T17:23:10.112Z","repository":{"id":34381102,"uuid":"38307536","full_name":"redhataccess/jvmpeg","owner":"redhataccess","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-19T21:26:09.000Z","size":176,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-30T18:12:13.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhataccess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-30T12:19:56.000Z","updated_at":"2021-05-20T23:03:03.000Z","dependencies_parsed_at":"2022-09-02T08:02:17.980Z","dependency_job_id":null,"html_url":"https://github.com/redhataccess/jvmpeg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhataccess%2Fjvmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhataccess%2Fjvmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhataccess%2Fjvmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhataccess%2Fjvmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhataccess","download_url":"https://codeload.github.com/redhataccess/jvmpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251749429,"owners_count":21637538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T21:12:29.618Z","updated_at":"2025-04-30T17:23:10.081Z","avatar_url":"https://github.com/redhataccess.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JVMPeg\n\nA React.js, Webpack, ES6, isomorphic, Flux (Marty) Red Hat Access Labs application that parses top output and thread dumps and correlates high CPU consuming threads.\n\n\n![Example output](https://cloud.githubusercontent.com/assets/2019830/8430750/e2c8214a-1f01-11e5-8de4-ec40c93c72cf.png \"Example Output\")\n\n## Features\n\n* Compilation with Webpack\n* React and jsx\n* Flux with [Marty](http://martyjs.org/)\n* react-router\n* Stylesheets can be CSS, LESS, SASS, Stylus or mixed\n* Embedded resources like images or fonts use DataUrls if appropriate\n* A simple flag loads a react component (and dependencies) on demand.\n* Development\n  * Development server\n  * Optionally Hot Module Replacement development server (LiveReload for Stylesheets and React components enabled)\n  * Uses SourceUrl for performance, but you may switch to SourceMaps easily\n* Production\n  * Server example for prerendering for React components\n  * Initial data inlined in page\n  * Long Term Caching through file hashes enabled\n  * Generate separate css file to avoid FOUC\n  * Minimized CSS and javascript\n* Also supports coffee-script files if you are more a coffee-script person.\n* You can also require markdown or text files for your content.\n\n## Local Installation\n\nInstall [node.js](https://nodejs.org) or [io.js](https://iojs.org)\n\nJust clone this repo and change the `origin` git remote.\n\n```text\nnpm install\nnpm run hot-dev-server\nnpm run start-dev\n```\n\n## Hot Module Replacement development server\n\n``` text\n# start the webpack-dev-server in HMR mode\nnpm run hot-dev-server\n# wait for the first compilation is successful\n\n# Ensure Red Hat resources are proxies through httpd or nginx\n\n# in another terminal/console\n# start the node.js server in development mode\nnpm run start-dev\n\n# open this url in your browser\nhttp://foo.redhat.com/labs/jvmpeg\n```\n\nThe configuration is `webpack-hot-dev-server.config.js`.\n\nIt automatically recompiles when files are changed. When a hot-replacement-enabled file is changed (i. e. stylesheets or React components) the module is hot-replaced. If Hot Replacement is not possible the page is refreshed.\n\nHot Module Replacement has a performance impact on compilation.\n\n\n## Production compilation and server\n\n``` text\n# build the client bundle and the prerendering bundle\nnpm run build\n\n# start the node.js server in production mode\nnpm run start\n\n# open this url in your browser\nhttp://foo.redhat.com/labs/jvmpeg\n```\n\nThe configuration is `webpack-production.config.js`.\n\nThe server is at `lib/server.js`\n\nThe production setting builds two configurations: one for the client (`build/public`) and one for the serverside prerendering (`build/prerender`).\n\n\n## Legacy static assets\n\nAssets in `public` are also served.\n\n\n## Build visualization\n\nAfter a production build you may want to visualize your modules and chunks tree.\n\nUse the [analyse tool](http://webpack.github.io/analyse/) with the file at `build/stats.json`.\n\n\n## Loaders and file types\n\nMany file types are preconfigured, but not every loader is installed. If you get an error like `Cannot find module \"xxx-loader\"`, you'll need to install the loader with `npm install xxx-loader --save` and restart the compilation.\n\n\n## Common changes to the configuration\n\n### Switch devtool to SourceMaps\n\nChange `devtool` property in `webpack-dev-server.config.js` and `webpack-hot-dev-server.config.js` to `\"source-map\"` (better module names) or `\"eval-source-map\"` (faster compilation).\n\nSourceMaps have a performance impact on compilation.\n\n### Enable SourceMaps in production\n\n1. Uncomment the `devtool` line in `webpack-production.config.js`.\n2. Make sure that the folder `build\\public\\debugging` is access controlled, i. e. by password.\n\nSourceMaps have a performance impact on compilation.\n\nSourceMaps contains your unminimized source code, so you need to restrict access to `build\\public\\debugging`.\n\n### Coffeescript\n\nCoffeescript is not installed/enabled by default to not distrub non-coffee developer, but you can install it easily:\n\n1. `npm install coffee-redux-loader --save`\n2. In `make-webpack-config.js` add `\".coffee\"` to the `var extensions = ...` line.\n\n## Handling deployment to ITOS\n\n```\ngg c Message\ngit tag x.y.z \u0026\u0026 git push \u0026\u0026 git push --tags labsdev master \u0026\u0026 git push --tags gitlab master\n```\n\n## License\n\nCopyright (c) 2015 Samuel Mendenhall\n\nMIT (http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhataccess%2Fjvmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhataccess%2Fjvmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhataccess%2Fjvmpeg/lists"}