scr-webservice todo list
- Visual code SSH connection to push code
- SSH connection to AWS
- Implement PHP file to save image S3 bucket
- Php read image from S3
scr-webservice todo list
I'm trying to upload image with React. Source code copied from:
https://www.geeksforgeeks.org/file-uploading-in-react-js/
Image upload required post API call eg, App.js#line39
API is Lumen. Source code is named scr-webservice.
Post call:
http://localhost:8000/api/imageupload
There is a very good video of image upload using React.js:
https://www.youtube.com/watch?v=XeiOnkEI7XI
Talks about axios post call at video 4:20, but using Firebase, which takes another learning time.
Found another good site talking about React and Lumen connection:
I wanted to update scr-webservice code to test uploading images.
The Github repository was created under my matthewoh93 google account.
When I tried to git clone the repo in my dell ubuntu laptop, it was giving below error.
This is because my dell laptop has ssh key bound to matthew.oh@executestrategy.net account.
I tried to add the ssh key into my github, but it didn't work. It returned that 'Key exists already' error.
The only solution was inviting matthew.oh@exec into my personal account as collaborator.
The menu is somewhere collaborator invite etc ...
YOu get email invitation.
Now you run lumen. But have errors because other dependencies not installed.
RUn composer install and you get all files. Voila again, Lumen web API is working on your new machine!
