{"id":19662813,"url":"https://github.com/baskeboler/react-image-tagger","last_synced_at":"2026-02-08T20:14:10.911Z","repository":{"id":85110373,"uuid":"66665937","full_name":"baskeboler/react-image-tagger","owner":"baskeboler","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-28T03:04:18.000Z","size":761,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T03:29:49.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/baskeboler.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,"zenodo":null}},"created_at":"2016-08-26T17:17:53.000Z","updated_at":"2016-08-28T03:04:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa9b56e5-2424-4589-ac7c-645b0cde3dbd","html_url":"https://github.com/baskeboler/react-image-tagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baskeboler/react-image-tagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskeboler%2Freact-image-tagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskeboler%2Freact-image-tagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskeboler%2Freact-image-tagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskeboler%2Freact-image-tagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baskeboler","download_url":"https://codeload.github.com/baskeboler/react-image-tagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskeboler%2Freact-image-tagger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268628927,"owners_count":24281058,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T16:12:27.071Z","updated_at":"2026-02-08T20:14:08.334Z","avatar_url":"https://github.com/baskeboler.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Below you will find some information on how to perform common tasks.  \nYou can find the most recent version of this guide [here](https://github.com/facebookincubator/create-react-app/blob/master/template/README.md).\n\n## Table of Contents\n\n- [Updating to New Releases](#updating-to-new-releases)\n- [Sending Feedback](#sending-feedback)\n- [Folder Structure](#folder-structure)\n- [Available Scripts](#available-scripts)\n  - [npm start](#npm-start)\n  - [npm run build](#npm-run-build)\n  - [npm run eject](#npm-run-eject)\n- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)\n- [Installing a Dependency](#installing-a-dependency)\n- [Importing a Component](#importing-a-component)\n- [Adding a Stylesheet](#adding-a-stylesheet)\n- [Post-Processing CSS](#post-processing-css)\n- [Adding Images and Fonts](#adding-images-and-fonts)\n- [Adding Bootstrap](#adding-bootstrap)\n- [Adding Flow](#adding-flow)\n- [Adding Custom Environment Variables](#adding-custom-environment-variables)\n- [Integrating with a Node Backend](#integrating-with-a-node-backend)\n- [Proxying API Requests in Development](#proxying-api-requests-in-development)\n- [Deployment](#deployment)\n  - [Now](#now)\n  - [Heroku](#heroku)\n  - [Surge](#surge)\n  - [GitHub Pages](#github-pages)\n- [Something Missing?](#something-missing)\n\n## Updating to New Releases\n\nCreate React App is divided into two packages:\n\n* `create-react-app` is a global command-line utility that you use to create new projects.\n* `react-scripts` is a development dependency in the generated projects (including this one).\n\nYou almost never need to update `create-react-app` itself: it’s delegates all the setup to `react-scripts`.\n\nWhen you run `create-react-app`, it always creates the project with the latest version of `react-scripts` so you’ll get all the new features and improvements in newly created apps automatically.\n\nTo update an existing project to a new version of `react-scripts`, [open the changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md), find the version you’re currently on (check `package.json` in this folder if you’re not sure), and apply the migration instructions for the newer versions.\n\nIn most cases bumping the `react-scripts` version in `package.json` and running `npm install` in this folder should be enough, but it’s good to consult the [changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md) for potential breaking changes.\n\nWe commit to keeping the breaking changes minimal so you can upgrade `react-scripts` painlessly.\n\n## Sending Feedback\n\nWe are always open to [your feedback](https://github.com/facebookincubator/create-react-app/issues).\n\n## Folder Structure\n\nAfter creation, your project should look like this:\n\n```\nmy-app/\n  README.md\n  index.html\n  favicon.ico\n  node_modules/\n  package.json\n  src/\n    App.css\n    App.js\n    index.css\n    index.js\n    logo.svg\n```\n\nFor the project to build, **these files must exist with exact filenames**:\n\n* `index.html` is the page template;\n* `favicon.ico` is the icon you see in the browser tab;\n* `src/index.js` is the JavaScript entry point.\n\nYou can delete or rename the other files.\n\nYou may create subdirectories inside `src`. For faster rebuilds, only files inside `src` are processed by Webpack.  \nYou need to **put any JS and CSS files inside `src`**, or Webpack won’t see them.\n\nYou can, however, create more top-level directories.  \nThey will not be included in the production build so you can use them for things like documentation.\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 run build`\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\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Displaying Lint Output in the Editor\n\n\u003eNote: this feature is available with `react-scripts@0.2.0` and higher.\n\nSome editors, including Sublime Text, Atom, and Visual Studio Code, provide plugins for ESLint.\n\nThey are not required for linting. You should see the linter output right in your terminal as well as the browser console. However, if you prefer the lint results to appear right in your editor, there are some extra steps you can do.\n\nYou would need to install an ESLint plugin for your editor first.\n\n\u003e**A note for Atom `linter-eslint` users**\n\n\u003eIf you are using the Atom `linter-eslint` plugin, make sure that **Use global ESLint installation** option is checked:\n\n\u003e\u003cimg src=\"http://i.imgur.com/yVNNHJM.png\" width=\"300\"\u003e\n\nThen make sure `package.json` of your project ends with this block:\n\n```js\n{\n  // ...\n  \"eslintConfig\": {\n    \"extends\": \"./node_modules/react-scripts/config/eslint.js\"\n  }\n}\n```\n\nProjects generated with `react-scripts@0.2.0` and higher should already have it.  \nIf you don’t need ESLint integration with your editor, you can safely delete those three lines from your `package.json`.\n\nFinally, you will need to install some packages *globally*:\n\n```sh\nnpm install -g eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-flowtype\n```\n\nWe recognize that this is suboptimal, but it is currently required due to the way we hide the ESLint dependency. The ESLint team is already [working on a solution to this](https://github.com/eslint/eslint/issues/3458) so this may become unnecessary in a couple of months.\n\n## Installing a Dependency\n\nThe generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`:\n\n```\nnpm install --save \u003clibrary-name\u003e\n```\n\n## Importing a Component\n\nThis project setup supports ES6 modules thanks to Babel.  \nWhile you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead.\n\nFor example:\n\n### `Button.js`\n\n```js\nimport React, { Component } from 'react';\n\nclass Button extends Component {\n  render() {\n    // ...\n  }\n}\n\nexport default Button; // Don’t forget to use export default!\n```\n\n### `DangerButton.js`\n\n\n```js\nimport React, { Component } from 'react';\nimport Button from './Button'; // Import a component from another file\n\nclass DangerButton extends Component {\n  render() {\n    return \u003cButton color=\"red\" /\u003e;\n  }\n}\n\nexport default DangerButton;\n```\n\nBe aware of the [difference between default and named exports](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281). It is a common source of mistakes.\n\nWe suggest that you stick to using default imports and exports when a module only exports a single thing (for example, a component). That’s what you get when you use `export default Button` and `import Button from './Button'`.\n\nNamed exports are useful for utility modules that export several functions. A module may have at most one default export and as many named exports as you like.\n\nLearn more about ES6 modules:\n\n* [When to use the curly braces?](http://stackoverflow.com/questions/36795819/react-native-es-6-when-should-i-use-curly-braces-for-import/36796281#36796281)\n* [Exploring ES6: Modules](http://exploringjs.com/es6/ch_modules.html)\n* [Understanding ES6: Modules](https://leanpub.com/understandinges6/read#leanpub-auto-encapsulating-code-with-modules)\n\n## Adding a Stylesheet\n\nThis project setup uses [Webpack](https://webpack.github.io/) for handling all assets. Webpack offers a custom way of “extending” the concept of `import` beyond JavaScript. To express that a JavaScript file depends on a CSS file, you need to **import the CSS from the JavaScript file**:\n\n### `Button.css`\n\n```css\n.Button {\n  padding: 20px;\n}\n```\n\n### `Button.js`\n\n```js\nimport React, { Component } from 'react';\nimport './Button.css'; // Tell Webpack that Button.js uses these styles\n\nclass Button extends Component {\n  render() {\n    // You can use them as regular CSS styles\n    return \u003cdiv className=\"Button\" /\u003e;\n  }\n}\n```\n\n**This is not required for React** but many people find this feature convenient. You can read about the benefits of this approach [here](https://medium.com/seek-ui-engineering/block-element-modifying-your-javascript-components-d7f99fcab52b). However you should be aware that this makes your code less portable to other build tools and environments than Webpack.\n\nIn development, expressing dependencies this way allows your styles to be reloaded on the fly as you edit them. In production, all CSS files will be concatenated into a single minified `.css` file in the build output.\n\nIf you are concerned about using Webpack-specific semantics, you can put all your CSS right into `src/index.css`. It would still be imported from `src/index.js`, but you could always remove that import if you later migrate to a different build tool.\n\n## Post-Processing CSS\n\nThis project setup minifies your CSS and adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it.\n\nFor example, this:\n\n```css\n.App {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n}\n```\n\nbecomes this:\n\n```css\n.App {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: row;\n          flex-direction: row;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n```\n\nThere is currently no support for preprocessors such as Less, or for sharing variables across CSS files.\n\n## Adding Images and Fonts\n\nWith Webpack, using static assets like images and fonts works similarly to CSS.\n\nYou can **`import` an image right in a JavaScript module**. This tells Webpack to include that image in the bundle. Unlike CSS imports, importing an image or a font gives you a string value. This value is the final image path you can reference in your code.\n\nHere is an example:\n\n```js\nimport React from 'react';\nimport logo from './logo.png'; // Tell Webpack this JS file uses this image\n\nconsole.log(logo); // /logo.84287d09.png\n\nfunction Header() {\n  // Import result is the URL of your image\n  return \u003cimg src={logo} alt=\"Logo\" /\u003e;\n}\n\nexport default function Header;\n```\n\nThis works in CSS too:\n\n```css\n.Logo {\n  background-image: url(./logo.png);\n}\n```\n\nWebpack finds all relative module references in CSS (they start with `./`) and replaces them with the final paths from the compiled bundle. If you make a typo or accidentally delete an important file, you will see a compilation error, just like when you import a non-existent JavaScript module. The final filenames in the compiled bundle are generated by Webpack from content hashes. If the file content changes in the future, Webpack will give it a different name in production so you don’t need to worry about long-term caching of assets.\n\nPlease be advised that this is also a custom feature of Webpack.\n\n**It is not required for React** but many people enjoy it (and React Native uses a similar mechanism for images). However it may not be portable to some other environments, such as Node.js and Browserify. If you prefer to reference static assets in a more traditional way outside the module system, please let us know [in this issue](https://github.com/facebookincubator/create-react-app/issues/28), and we will consider support for this.\n\n## Adding Bootstrap\n\nYou don’t have to use [React Bootstrap](https://react-bootstrap.github.io) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:\n\nInstall React Bootstrap and Bootstrap from NPM. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well:\n\n```\nnpm install react-bootstrap --save\nnpm install bootstrap@3 --save\n```\n\nImport Bootstrap CSS and optionally Bootstrap theme CSS in the ```src/index.js``` file:\n\n```js\nimport 'bootstrap/dist/css/bootstrap.css';\nimport 'bootstrap/dist/css/bootstrap-theme.css';\n```\n\nImport required React Bootstrap components within ```src/App.js``` file or your custom component files:\n\n```js\nimport { Navbar, Jumbotron, Button } from 'react-bootstrap';\n```\n\nNow you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://gist.githubusercontent.com/gaearon/85d8c067f6af1e56277c82d19fd4da7b/raw/6158dd991b67284e9fc8d70b9d973efe87659d72/App.js) redone using React Bootstrap.\n\n## Adding Flow\n\nFlow typing is currently [not supported out of the box](https://github.com/facebookincubator/create-react-app/issues/72) with the default `.flowconfig` generated by Flow. If you run it, you might get errors like this:\n\n```js\nnode_modules/fbjs/lib/Deferred.js.flow:60\n 60:     Promise.prototype.done.apply(this._promise, arguments);\n                           ^^^^ property `done`. Property not found in\n495: declare class Promise\u003c+R\u003e {\n     ^ Promise. See lib: /private/tmp/flow/flowlib_34952d31/core.js:495\n\nnode_modules/fbjs/lib/shallowEqual.js.flow:29\n 29:     return x !== 0 || 1 / (x: $FlowIssue) === 1 / (y: $FlowIssue);\n                                   ^^^^^^^^^^ identifier `$FlowIssue`. Could not resolve name\n\nsrc/App.js:3\n  3: import logo from './logo.svg';\n                      ^^^^^^^^^^^^ ./logo.svg. Required module not found\n\nsrc/App.js:4\n  4: import './App.css';\n            ^^^^^^^^^^^ ./App.css. Required module not found\n\nsrc/index.js:5\n  5: import './index.css';\n            ^^^^^^^^^^^^^ ./index.css. Required module not found\n```\n\nTo fix this, change your `.flowconfig` to look like this:\n\n```ini\n[libs]\n./node_modules/fbjs/flow/lib\n\n[options]\nesproposal.class_static_fields=enable\nesproposal.class_instance_fields=enable\n\nmodule.name_mapper='^\\(.*\\)\\.css$' -\u003e 'react-scripts/config/flow/css'\nmodule.name_mapper='^\\(.*\\)\\.\\(jpg\\|png\\|gif\\|eot\\|otf\\|webp\\|svg\\|ttf\\|woff\\|woff2\\|mp4\\|webm\\)$' -\u003e 'react-scripts/config/flow/file'\n\nsuppress_type=$FlowIssue\nsuppress_type=$FlowFixMe\n```\n\nRe-run flow, and you shouldn’t get any extra issues.\n\nIf you later `eject`, you’ll need to replace `react-scripts` references with the `\u003cPROJECT_ROOT\u003e` placeholder, for example:\n\n```ini\nmodule.name_mapper='^\\(.*\\)\\.css$' -\u003e '\u003cPROJECT_ROOT\u003e/config/flow/css'\nmodule.name_mapper='^\\(.*\\)\\.\\(jpg\\|png\\|gif\\|eot\\|otf\\|webp\\|svg\\|ttf\\|woff\\|woff2\\|mp4\\|webm\\)$' -\u003e '\u003cPROJECT_ROOT\u003e/config/flow/file'\n```\n\nWe will consider integrating more tightly with Flow in the future so that you don’t have to do this.\n\n## Adding Custom Environment Variables\n\n\u003eNote: this feature is available with `react-scripts@0.2.3` and higher.\n\nYour project can consume variables declared in your environment as if they were declared locally in your JS files. By\ndefault you will have `NODE_ENV` defined for you, and any other environment variables starting with\n`REACT_APP_`. These environment variables will be defined for you on `process.env`. For example, having an environment\nvariable named `REACT_APP_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_SECRET_CODE`, in addition\nto `process.env.NODE_ENV`.\n\nThese environment variables can be useful for displaying information conditionally based on where the project is\ndeployed or consuming sensitive data that lives outside of version control.\n\nFirst, you need to have environment variables defined, which can vary between OSes. For example, let's say you wanted to\nconsume a secret defined in the environment inside a `\u003cform\u003e`:\n\n```jsx\nrender() {\n  return (\n    \u003cdiv\u003e\n      \u003csmall\u003eYou are running this application in \u003cb\u003e{process.env.NODE_ENV}\u003c/b\u003e mode.\u003c/small\u003e\n      \u003cform\u003e\n        \u003cinput type=\"hidden\" defaultValue={process.env.REACT_APP_SECRET_CODE} /\u003e\n      \u003c/form\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\nThe above form is looking for a variable called `REACT_APP_SECRET_CODE` from the environment. In order to consume this\nvalue, we need to have it defined in the environment:\n\n### Windows (cmd.exe)\n\n```cmd\nset REACT_APP_SECRET_CODE=abcdef\u0026\u0026npm start\n```\n\n(Note: the lack of whitespace is intentional.)\n\n### Linux, OS X (Bash)\n\n```bash\nREACT_APP_SECRET_CODE=abcdef npm start\n```\n\n\u003e Note: Defining environment variables in this manner is temporary for the life of the shell session. Setting\npermanent environment variables is outside the scope of these docs.\n\nWith our environment variable defined, we start the app and consume the values. Remember that the `NODE_ENV`\nvariable will be set for you automatically. When you load the app in the browser and inspect the `\u003cinput\u003e`, you will see\nits value set to `abcdef`, and the bold text will show the environment provided when using `npm start`:\n\n```html\n\u003cdiv\u003e\n  \u003csmall\u003eYou are running this application in \u003cb\u003edevelopment\u003c/b\u003e mode.\u003c/small\u003e\n  \u003cform\u003e\n    \u003cinput type=\"hidden\" value=\"abcdef\" /\u003e\n  \u003c/form\u003e\n\u003c/div\u003e\n```\n\nHaving access to the `NODE_ENV` is also useful for performing actions conditionally:\n\n```js\nif (process.env.NODE_ENV !== 'production') {\n  analytics.disable();\n}\n```\n\n## Integrating with a Node Backend\n\nCheck out [this tutorial](https://www.fullstackreact.com/articles/using-create-react-app-with-a-server/) for instructions on integrating an app with a Node backend running on another port, and using `fetch()` to access it. You can find the companion GitHub repository [here](https://github.com/fullstackreact/food-lookup-demo).\n\n## Proxying API Requests in Development\n\n\u003eNote: this feature is available with `react-scripts@0.2.3` and higher.\n\nPeople often serve the front-end React app from the same host and port as their backend implementation.  \nFor example, a production setup might look like this after the app is deployed:\n\n```\n/             - static server returns index.html with React app\n/todos        - static server returns index.html with React app\n/api/todos    - server handles any /api/* requests using the backend implementation\n```\n\nSuch setup is **not** required. However, if you **do** have a setup like this, it is convenient to write requests like `fetch('/api/todos')` without worrying about redirecting them to another host or port during development.\n\nTo tell the development server to proxy any unknown requests to your API server in development, add a `proxy` field to your `package.json`, for example:\n\n```js\n  \"proxy\": \"http://localhost:4000\",\n```\n\nThis way, when you `fetch('/api/todos')` in development, the development server will recognize that it’s not a static asset, and will proxy your request to `http://localhost:4000/api/todos` as a fallback.\n\nConveniently, this avoids [CORS issues](http://stackoverflow.com/questions/21854516/understanding-ajax-cors-and-security-considerations) and error messages like this in development:\n\n```\nFetch API cannot load http://localhost:4000/api/todos. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.\n```\n\nKeep in mind that `proxy` only has effect in development (with `npm start`), and it is up to you to ensure that URLs like `/api/todos` point to the right thing in production. You don’t have to use the `/api` prefix. Any unrecognized request will be redirected to the specified `proxy`.\n\nCurrently the `proxy` option only handles HTTP requests, and it won’t proxy WebSocket connections.  \nIf the `proxy` option is **not** flexible enough for you, alternatively you can:\n\n* Enable CORS on your server ([here’s how to do it for Express](http://enable-cors.org/server_expressjs.html)).\n* Use [environment variables](#adding-custom-environment-variables) to inject the right server host and port into your app.\n\n## Deployment\n\nBy default, Create React App produces a build assuming your app is hosted at the server root.  \nTo override this, specify the `homepage` in your `package.json`, for example:\n\n```js\n  \"homepage\": \"http://mywebsite.com/relativepath\",\n```\n\nThis will let Create React App correctly infer the root path to use in the generated HTML file.\n\n### Now\n\nSee [this example](https://github.com/xkawi/create-react-app-now) for a zero-configuration single-command deployment with [now](https://zeit.co/now).\n\n### Heroku\n\nUse the [Heroku Buildpack for Create React App](https://github.com/mars/create-react-app-buildpack).  \nYou can find instructions in [Deploying React with Zero Configuration](https://blog.heroku.com/deploying-react-with-zero-configuration).\n\n### Surge\n\nInstall the Surge CLI if you haven't already by running `npm install -g surge`. Run the `surge` command and log in you or create a new account. You just need to specify the *build* folder and your custom domain, and you are done.\n\n```sh\n              email: email@domain.com\n           password: ********\n       project path: /path/to/project/build\n               size: 7 files, 1.8 MB\n             domain: create-react-app.surge.sh\n             upload: [====================] 100%, eta: 0.0s\n   propagate on CDN: [====================] 100%\n               plan: Free\n              users: email@domain.com\n         IP Address: X.X.X.X\n\n    Success! Project is published and running at create-react-app.surge.sh\n```\n\nNote that in order to support routers that use html5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).\n\n### GitHub Pages\n\n\u003eNote: this feature is available with `react-scripts@0.2.0` and higher.\n\nOpen your `package.json` and add a `homepage` field:\n\n```js\n  \"homepage\": \"http://myusername.github.io/my-app\",\n```\n\n**The above step is important!**  \nCreate React App uses the `homepage` field to determine the root URL in the built HTML file.\n\nNow, whenever you run `npm run build`, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:\n\n```sh\ngit commit -am \"Save local changes\"\ngit checkout -B gh-pages\ngit add -f build\ngit commit -am \"Rebuild website\"\ngit filter-branch -f --prune-empty --subdirectory-filter build\ngit push -f origin gh-pages\ngit checkout -\n```\n\nYou may copy and paste them, or put them into a custom shell script. You may also customize them for another hosting provider.\n\nNote that GitHub Pages doesn't support routers that use the HTML5 `pushState` history API under the hood (for example, React Router using `browserHistory`). This is because when there is a fresh page load for a url like `http://user.github.io/todomvc/todos/42`, where `/todos/42` is a frontend route, the GitHub Pages server returns 404 because it knows nothing of `/todos/42`. If you want to add a router to a project hosted on GitHub Pages, here are a couple of solutions:\n* You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to `hashHistory` for this effect, but the URL will be longer and more verbose (for example, `http://user.github.io/todomvc/#/todos/42?_k=yknaj`). [Read more](https://github.com/reactjs/react-router/blob/master/docs/guides/Histories.md#histories) about different history implementations in React Router.\n* Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your `index.html` page with a special redirect parameter. You would need to add a `404.html` file with the redirection code to the `build` folder before deploying your project, and you’ll need to add code handling the redirect parameter to `index.html`. You can find a detailed explanation of this technique [in this guide](https://github.com/rafrex/spa-github-pages).\n\n## Something Missing?\n\nIf you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/template/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskeboler%2Freact-image-tagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaskeboler%2Freact-image-tagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskeboler%2Freact-image-tagger/lists"}