- Take a photo of the fabric
on this machine:
- Put the photo in the
public/assets
directory npm run build
git add .
git commit -m "Adding a new style"
git push
ssh to the server
git pull
on AWS AppSync
- Login - go to Cognito>App client settings to get the id
- Run
GetColours
query. Store the colour id. - Run
GetStyles
query. Store the style id swatchUrl
should be set tohttps://sienandco.space/assets/
+ your new file from above- Run
CreateStyleColour
mutation with thecolourId
,styleId
,glenRavenName
, andswatchUrl
npm run start
npm run build
- Commit to git and push
- Get the URL of the Writer
mysql -h appsyncrdsinstance-rcy4ohoyyzhlvahtxrucs5oix4.clghn7faucwg.us-east-2.rds.amazonaws.com -u master -p
- If that fails, you may have to update your IP for the security group for the Writer
- If that fails try rebooting the database in the AWS console
use myrds
show tables;
- Take a picture of the fabric. Put that image in
public/assets
. Build and deploy INSERT INTO colours (id, name) VALUES (uuid(), 'New Colour Name');
INSERT INTO styles (id, name) VALUES (UUID(), 'New Style Name');
INSERT INTO stylesColours (id, colourId, styleId, swatchUrl, sku) VALUES (uuid(), 'New Colour Id', 'New Style ID', 'https://sienandco.space/assets/newimage.jpg', 'AAABBBFAB)