rockiger
Forum Replies Created
-
I never use woocommerce and don’t fully understand what you want to achieve. You want’t to replace the theme? It sounds to me, you would like to create a headless WordPress site. There are other frameworks for that. Gatsby, Nextjs and Frontity come to mind
ReactPress is meant to be integrated in an existing theme, inside a normal WordPress page. Then you are automatically logged in and you will have access to the API like a logged in user would have. Which access exactly depends on the user role.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create appFriday afternoon is fine. I don’t have a preferred meeting platform, but had good experiences with Google Meet. You can send me an invitation at [email protected].
The time slot from 1 to 2:30 pm would be fine on Friday.
Forum: Developing with WordPress
In reply to: Custom Post Type vs. Custom TableThank you. Your approach seems very promising.
In my first implementation I was going away from custom post types. Especially for the tasks, since I have to load a lot per board/page. And using post_meta for that is probably quite slow, if you have to load 500 tasks + metadata.
I will definitely try your approach!
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create appNo, I didn’t get this problem before.
What I think is odd is this line:
30281 error enoent ENOENT: no such file or directory, open '/home/user/bitnami/apps/wordpress/htdocs/wp-content/plugins/reactpress/apps/robo3/robo3/node_modules/jest/node_modules/jest-cli/package.json.1264138106'
There should be only one robo3 directory. Let me test the VM in my Mac OS VM. I hope my Mac OS guest will allow it.
Then we could make a call. I am located in Germany. Where are you?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Multisite?Hello, unfortunately I don’t know anything about multisite Installations.
Therefore, I can’t answer your first question. Regarding your second question, your user will only need shell access, when he is doing React development on his local development machine. It makes no sense to run the create-react-app dev server on a live system.
You only need the plugin on a live site, to embed your built React app. For uploading you need ftp access at the moment.
Hope this answer your questions.
Forum: Developing with WordPress
In reply to: Custom Post Type vs. Custom TableThank you. That is what I am thinking, too.
I am only worried, if I could run in performance problems if I use taxonomies a lot. But maybe my thinking is a case of premature optimization.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Issue running build AppYeah sure, will do. I updated the plugin the day before yesterday.
Not directly, you could create a new app, develop your widget, and after you build it, change the links in the
asset-manifest.json
in your React apps build folder to the location in the admin.But you won’t have the right styles loaded. This article has a great write-up, on how to use CRA with WordPress admin.
I will add backend/admin use as a future feature.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Issue running build AppOk, I understand.
Your
$_SERVER['DOCUMENT_ROOT']
is not set. As a workaround I would propose the following solution: Change the code at line 132 like so:$relative_apppath = '/wp-content/plugins/reactpress/apps/calculator/';
and remove the
echo
s. Your app should run now. In the future I will add a new feature, that will allow you to input your React app folder.Let me know if this fixes your issues.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create app@jsolthomsen I created a VirtualBox Image. Please follow this tutorial: https://rockiger.com/en/reactpress-dev-environment/
It has everything needed is installed. It is not as comfortable as using something like Local or Homestead, but it worked for me on a Windows VM. I couldn’t test it on macOS so far. The Download is about 1.7 GB.
I really hope this helps. I put too much work into ReactPress for devs to not be able to use ??
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create an appSounds like a great idea. Make sure you install node with nvm and install yarn, too.
I am uploading a VM as we speak to provide a ReactPress friendly environment. I will post as soon as I finished my tests.
Sorry for the inconvenience.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Issue running build AppHi ianuminc,
it seems that the WP function
plugin_dir_path(__FILE__)
produces odd results or that$_SERVER['DOCUMENT_ROOT']
is not set.Just to make sure, could you add the following code:
echo ('REPR_PLUGIN_PATH: ' . REPR_PLUGIN_PATH); echo ('<br />'); echo ('$plugin_app_dir_url: ' . $plugin_app_dir_url); echo ('<br />'); echo ('$relative_apppath: ' . $relative_apppath);
To the file
public/class-reactpress-publich.php
at line 134 and show me the result?Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create appHey jsolthomsen,
I had luck with a VM that I created myself. I will create a downloadable image and a writeup how to use it this weekend.
Basically, I created a VM with Ubuntu server. Installed Bitnami and node there and configured a shared folder with the permission to create symlinks.
Would a VM with a shared folder work for you?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create an appI don’t know for sure, but probably.
You need to create the app in your local environment! Which system do you work on?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can’t create appI tried to create an app OSX in a virtual machine and didn’t had any luck either. I tried different dev servers. I don’t know enough about Macs to really assist you. What dev-server do you use?
Did you try to change the permissions of the folder? Can you “deploy” an app locally?
To answer your question. I don’t do much logging in the release.