This boilerplate has all the authentication flow implemented.
cd good-old-react-authentication-flow
npm install
npm start
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.