You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21-17Lines changed: 21 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,48 +79,52 @@ The frontend will be available at http://localhost:3000
79
79
80
80
The backend is a vanilla WordPress install hosted at [WP Engine](https://nextjs.wpengine.com), with the following plugins installed:
81
81
82
-
1.`Advanced Custom Fields Pro`: At WebDevStudios we leverage ACF to handle custom post meta and [ACF Blocks](https://www.advancedcustomfields.com/resources/blocks/).
82
+
`Advanced Custom Fields Pro` - At WebDevStudios we leverage ACF to handle custom post meta and [ACF Blocks](https://www.advancedcustomfields.com/resources/blocks/).
83
83
84
-
2.`reSmush.it Image Optimizer`: Keeps image sizes small by optimizing them on upload.
84
+
`reSmush.it Image Optimizer` - Keeps image sizes small by optimizing them on upload.
85
85
86
-
3.`WDS SSO`: Used as our internal single-sign on service.
86
+
`WDS SSO` - Used as our internal single-sign on service.
87
87
88
-
4.`WP GraphQL, WP GraphiQL, and WP GraphQL JWT Authentication`: GraphQL is installed on the WordPress backend and the endpoint is: `https://nextjs.wpengine.com/graphql`
88
+
`WP GraphQL` - GraphQL is installed on the WordPress backend and the endpoint is: `https://nextjs.wpengine.com/graphql`
89
89
90
-
You can use GrapiQL to build queries in the [WordPress Dashboard](https://nextjs.wpengine.com/wp-admin/admin.php?page=wp-graphiql%2Fwp-graphiql.php). Those queries can be copied and pasted right into the frontend. You can view the current list of GraphQL queries in [/lib/api.js](https://github.com/WebDevStudios/nextjs-wordpress-starter/blob/main/lib/api.js) JWT Authentication allows the frontend to talk to the backend.
90
+
`WP GraphiQL` - You can use WP GraphiQL to build queries in the [WordPress Dashboard](https://nextjs.wpengine.com/wp-admin/admin.php?page=wp-graphiql%2Fwp-graphiql.php). Those queries can be copied and pasted right into the frontend. You can view the current list of GraphQL queries in [/lib/api.js](https://github.com/WebDevStudios/nextjs-wordpress-starter/blob/main/lib/api.js)
91
91
92
-
5.`WP Migrate DB Pro`: Used for moving database and files between environments.
92
+
`WP GraphQL JWT`: JWT Authentication allows the frontend to talk to the backend via environment variable `.env.local`
93
93
94
-
6.`There is no frontend for WordPress`: But it is running [wd_s](https://github.com/WebDevStudios/wd_s). wd_s houses `/acf-json` and other functions for building ACF Blocks. *If you try to view the WordPress frontend, you will be redirected back to the WordPress dashboard.*
94
+
`WP Migrate DB Pro`: Used for moving database and files between environments.
95
+
96
+
`There is no frontend for WordPress`: But it is running [wd_s](https://github.com/WebDevStudios/wd_s). wd_s houses `/acf-json` and other functions for building ACF Blocks. *If you try to view the WordPress frontend, you will be redirected back to the WordPress dashboard.*
95
97
96
98
---
97
99
98
100
## 💻 Workflow
99
101
100
102
Contributing to this project is a lot like any other WDS project...
101
103
104
+
### Local by Flywheel
105
+
106
+
There is an [Local export available](https://drive.google.com/file/d/1p0qvsf2OWSr0Wesl2rrxhwJxHW3JUAMg/view?usp=sharing). Simply import the `.zip` file and you can tinker with the WordPress backend.
107
+
102
108
### Git Workflow
103
109
104
110
1. Create a `feature` branch off `main`
105
111
2. Open a draft Pull Request on Github
106
-
3. When finished with your work, undraft, and assign to Lead Engineer for peer review
112
+
3. When finished with your work, publish your PR, and assign to Lead Engineer for peer review
113
+
4. Vercel will create a deployment preview. It must pass and deploy successfully
107
114
4. After peer review, PR will be merged back into `main`
108
115
5. Repeat ♻️
109
116
110
117
### Deployments
111
118
112
-
Vercel is connected to the WebDevStudios Github account. Deployment previews are available for PRs, and merges into `main` are auto deployed.
119
+
[Vercel](https://vercel.com/webdevstudios/nextjs-wordpress-example) is connected to this repo and handles builds deployments
0 commit comments