Skip to content

Latest commit

 

History

History
 
 

good-old-react-authentication-flow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.