Find file History
Latest commit 730cf15 Nov 16, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config Created Product container Mar 7, 2018
public New boilerplate Feb 14, 2018
scripts Created Product container Mar 7, 2018
src Add comments Mar 8, 2018
.gitignore New boilerplate Feb 14, 2018
.jshintrc Create .jshintrc Nov 16, 2018
README.md Update readme Mar 7, 2018
package-lock.json Update README Apr 18, 2018
package.json Created Product container Mar 7, 2018
yarn.lock New boilerplate Feb 14, 2018

README.md

React create app boilerplate

This boilerplate has all the authentication flow implemented.

cd good-old-react-authentication-flow
npm install
npm start

Testing the upload feature

In your Strapi project run the following:

strapi generate:api product

then in your /api/product/model/Product.settings.json copy-paste the following:

{
  "connection": "default",
  "collectionName": "",
  "info": {
    "name": "product",
    "description": ""
  },
  "attributes": {
    "name": {
      "type": "string"
    },
    "pictures": {
      "collection": "file",
      "via": "related",
      "plugin": "upload"
    }
  }
}

Register the admin user in strapi and you're good to go.