wtsang11 / TechExplore

MIT License
0 stars 0 forks source link

Introduction #177

Open wtsang11 opened 2 years ago

wtsang11 commented 2 years ago

http://localhost/TechNotes/wp-admin/post.php?post=1435&action=edit and contactInfo project http://localhost/TechNotes/wp-admin/post.php?post=1469&action=edit

VSC: http://localhost/lab/python/utilities/study_codes/opencodes.php?f=/Users/wtsang/Lab/react/zachary_jamstack_strapi_gatsby/

What is JAMStack https://www.youtube.com/watch?v=A_l0qrPUJds&ab_channel=freeCodeCamp.org

The Great Gatsby Bootcamp https://www.youtube.com/watch?v=kzWIUX3CpuI&ab_channel=freeCodeCamp.org

Basic MySql Workbench Use Tips https://www.youtube.com/watch?v=pZKrznZymMg&ab_channel=TechGeekyArti

wtsang11 commented 2 years ago

Development environment

-- mongodb in container https://www.bmc.com/blogs/mongodb-docker-container/ -- why PUID and PGID enviornment settings https://docs.linuxserver.io/general/understanding-puid-and-pgid -- location of mac mongodb database /usr/local/var/mongodb -- Robo 3T as a utility to connect to mongodb -- strapi quick start guide https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html -- strapi installation using docker which creates an mongo image also https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/installation/docker.html#creating-a-strapi-project

Running a gatsby site in docker

https://typeofnan.dev/how-to-serve-a-gatsby-app-with-nginx-in-docker/

Running gatsby without using gatsby new

https://www.gatsbyjs.com/docs/using-gatsby-professionally/setting-up-gatsby-without-gatsby-new/

Running gatsby-cli in container

https://stackoverflow.com/questions/52961824/run-gatsby-with-docker-compose

wtsang11 commented 2 years ago

Strapi automatically creates End Points for each content type

https://strapi.io/documentation/developer-docs/latest/developer-resources/content-api/content-api.html#api-endpoints

wtsang11 commented 2 years ago

Strapi and Mysql

-- need to create database first before creating strapi project -- Demo https://www.youtube.com/watch?v=NbT7neMkM24&ab_channel=TechNews -- Running multiple strapi projects requirement different port for each instance -- such as 1337 for var_x/bacend, 2337 for contactInfo/backend

wtsang11 commented 2 years ago

Strapi Concepts

-- Core Controllers https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#controllers -- Create is owner policy https://strapi.io/documentation/developer-docs/latest/guides/is-owner.html#create-is-owner-policy -- Policies https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#routing -- Services https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#services -- Webhooks https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#webhooks -- MongoDB design for Retail stores https://www.mongodb.com/blog/post/retail-reference-architecture-part-1-building-flexible-searchable-low-latency-product -- Single Types https://strapi.io/blog/beta-19-single-types-uid-field

wtsang11 commented 2 years ago

Gatsby and GraphQL

https://graphql.org/learn/

-- Schemas and Types https://graphql.org/learn/schema/

-- see also Gatsby and WordPress as headless CMS https://www.youtube.com/watch?v=zaV41KpiDGk&t=1943s&ab_channel=Weibenfalk

-- install graphql plugin in backend via strapi administration page

-- install gatsby-source-strapi in frontend npm i --save gatsby-source-strapi see https://www.gatsbyjs.com/plugins/gatsby-source-strapi/