{"id":21699935,"url":"https://github.com/tbhatti/status-management","last_synced_at":"2026-04-10T11:03:23.257Z","repository":{"id":147769383,"uuid":"285701356","full_name":"tbhatti/status-management","owner":"tbhatti","description":"Skelton","archived":false,"fork":false,"pushed_at":"2020-08-10T00:51:30.000Z","size":451,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:49:58.508Z","etag":null,"topics":["bable","bootstrap4","less","redux","routers","webpack"],"latest_commit_sha":null,"homepage":"","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/tbhatti.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-07T00:41:54.000Z","updated_at":"2020-08-10T00:51:33.000Z","dependencies_parsed_at":"2023-05-10T11:30:58.453Z","dependency_job_id":null,"html_url":"https://github.com/tbhatti/status-management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tbhatti/status-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhatti%2Fstatus-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhatti%2Fstatus-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhatti%2Fstatus-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhatti%2Fstatus-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbhatti","download_url":"https://codeload.github.com/tbhatti/status-management/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhatti%2Fstatus-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bable","bootstrap4","less","redux","routers","webpack"],"created_at":"2024-11-25T20:12:10.767Z","updated_at":"2026-04-10T11:03:23.240Z","avatar_url":"https://github.com/tbhatti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Status management\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr /\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr /\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run create`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr /\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n## `Setup webpack`\nCreate webpack.config.js at root folder and paste following contents for less, css etc.\n```python\nvar path = require('path');\nvar HtmlWebpackPlugin =  require('html-webpack-plugin');\n\nmodule.exports = {\n    entry : './src/index.js',\n    output : {\n        path : path.resolve(__dirname , 'dist'),\n        filename: 'index_bundle.js'\n    },\n    module : {\n        rules : [\n            {test : /\\.(js)$/, use:'babel-loader'},\n            {test : /\\.less$/, \n                use: [\n                    { loader: 'style-loader' },\n                    { loader: 'css-loader' },\n                    { loader: 'less-loader' }\n                ]\n            },\n            {\n                test: /\\.css$/i,\n                use: ['style-loader', 'css-loader'],\n              }\n        ]\n    },\n    mode:'development',\n    plugins : [\n        new HtmlWebpackPlugin ({\n            template : './public/index.html'\n        })\n    ]\n\n}\n```\n\n## `Setup bable`\nCreate babel.config.js at root folder and paste following contents\n```python\nmodule.exports = {\n    presets: [ \"@babel/preset-env\", \"@babel/preset-react\" ],\n    plugins: [ \"@babel/plugin-transform-arrow-functions\", \"@babel/plugin-proposal-class-properties\" ]\n}\n```\n## `Setup Routs`\nInstall following two packages\n```python\n\"react-router\": \"^5.2.0\",\n \"react-router-dom\": \"^5.2.0\"\n ```\nThen create routes.js file and have following contents in the file\n```python\nimport App from '../App';\nimport Home from '../components/home';\nimport Contact from '../components/contact';\nimport About from '../components/about';\nimport React from 'react';\nimport { BrowserRouter, Route, Switch, Link } from 'react-router-dom';\nimport Header from '../components/header';\nimport Footer from '../components/footer';\n\nfunction Routes() {\n    return (\n\t\u003cBrowserRouter\u003e\n\t\u003cdiv\u003e\n\t\u003cHeader /\u003e\n\t\u003chr/\u003e\n\t\u003cdiv className=\"flex-line\"\u003e\n\t\u003cdiv className=\"content\"\u003e \n\t\u003cSwitch\u003e\t\t\t\t\n\t\u003cRoute exact path='/' component={App}/\u003e\t\t\t  \n\t\u003cRoute path='/home' component={Home}/\u003e\n\t\u003cRoute path='/contact' component={Contact}/\u003e\n\t\u003cRoute path='/about' component={About}/\u003e\n\t\u003c/Switch\u003e \n\t\u003c/div\u003e\n\t\u003c/div\u003e   \n\t\u003cFooter /\u003e\n\t\u003c/div\u003e \n\t\u003c/BrowserRouter\u003e\n    )\n}\nexport default Routes;\n```\n## `Setup Redux`\n```python\nnpm i redux\nnpm i react-redux\nnpm i redux-thunk\n```\n### Create following folder structure\n\n    ├── redux                \n    │   ├── actions          # All actions\n    │   ├── reducers         # All reducers\n    │   └── types            # All action types\n    │\t└── store.js\t     # Js file for store\n    └── ...\n## `Setup Conditional routes`\nCreate a folder inside components \n├── components                \n    │   ├── auth          \n    │      ├── index.js         \n    └── ...\nPaste the following contents to the file\n```python\nimport React, { cloneElement, Children } from 'react'\nimport { Route, Redirect } from 'react-router-dom'\n\nconst PrivateRoute = ({ children, authed, ...rest }) =\u003e\n  \u003cRoute\n    {...rest}\n    render={(props) =\u003e localStorage.getItem('name') === 'true' ?\n      \u003cdiv\u003e\n        {Children.map(children, child =\u003e cloneElement(child, { ...child.props }))}\n      \u003c/div\u003e\n      :\n      \u003cRedirect to={{ pathname: '/', state: { from: props.location } }} /\u003e}\n  /\u003e\n\nexport default PrivateRoute\n```\n## `Setup Bootstrap`\n```python\nnpm i bootstrap\n```\nIn index.js add following lines\n```python\nimport '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport  '../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhatti%2Fstatus-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbhatti%2Fstatus-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhatti%2Fstatus-management/lists"}