Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 721 Bytes

File metadata and controls

42 lines (34 loc) · 721 Bytes

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.