How to use Structr with a frontend framework like ReactJS, Vue etc?
I want to create a React app entirely separately from Structr that only talks to it via RESTful API.
How to talk to Structr via separate frontend via RESTful API?
Do I just create pages and render raw data which'll serve as paths for API endpoints?
Or does it have a "hidden" (can't seem to find it in the docs) RESTful API already present that I can use?
Yes, Structr has a RESTful API - you can find the docs here: https://docs.structr.com/docs/rest-guide
Related
Considering having an old app written in WordPress and I want to convert it step-by-step into an app written with modern frameworks React + NodeJS.
Right now my first thought is firstly create a Frontend in React and use custom-created API endpoints in WordPress.
My technical difficulty is with Google OAuth authentication: considering that I am acquiring a token on React Frontend how can I use this token to make API requests to the WordPress backend?
One approach would be like this:
Use https://www.npmjs.com/package/google-auth-library and get the token in your react app.
Then use axios or fetch to POST to wordpress API using this plugin https://wordpress.org/plugins/miniorange-login-with-eve-online-google-facebook/
Both the lib & plugin have examples, too.
I would like to know what is the best approach to implement the upload of large files to a Rails app but the front-end isn't in Rails it is in React/electron. Besides, I can't use S3 or any kind of cloud storage the files goes directly to the server.
You need 2 things.
backend service that handles the file uploads via API
frontend library to call to the backend via API
For the backend you could use something like paperclip, carrierwave or active storage
For the frontend I like to use Uppy which has a very user-friendly UI and is compatible with react
Here is a guide that could be useful to you https://gorails.com/episodes/uppy-with-active-storage
I've been trying to build a website with a backend via Django and a frontend via React. I would like to make it so users can see the contents of a CSV file. The Django rest framework site recommends using the following: https://github.com/mjumbewu/django-rest-framework-csv#readme
I was wondering if anyone had any examples of how to use this to turn into an api that can then be used on the frontend with react. I can't seem to find any examples of how to do this.
We have started to work with serverless technologies specifically with AWS Lambda and API Gateway using the serverless framework. We are working with Auth0 to manage authentication. Question is what is the best front-end technology we should use?
I think that we can build the front-end using S3 and cloudfront. The flexibility of each webpage or a set of webpages without any server sounds fantastic and simple, however I wanted to know of any pros and cons in building out web pages that use standard javascript ajax calls using S3 and cloudfront versus using other front-end technologies such as angularjs or vue?
tldr;: Should we build front-end pages using angularjs, vue, etc. or should we use S3 using pure AJAX calls? What are the pros and cons?
You should find hosting any application that uses a popular SPA framework via S3 is achievable. The fact you are using serverless for the API(s) that will be called from your SPA application makes no difference from the perspective of the SPA (client). The client is referencing a web endpoint only. For secured API endpoints, please look at Auth0's Resource API approach, where you would receive a JWT ID Token and JWT Access Token on successful authentication, and send the JWT Access Token with each request. More information on this on the Auth0 website together with samples illustrating how it all works.
Regarding choice on SPA framework / JS technology to use - here are a few useful links to help getting started:
AngularJS - https://auth0.com/docs/client-platforms/angularjs
AngularJS 2 - https://auth0.com/docs/client-platforms/angular2
EmberJS - https://auth0.com/docs/client-platforms/emberjs
EmberJS 2 - https://auth0.com/docs/client-platforms/ember2js
React - https://auth0.com/docs/client-platforms/react
jQuery - https://auth0.com/docs/client-platforms/jquery
Vanilla JS - https://auth0.com/docs/client-platforms/vanillajs
Hope your project is a success.
I am beginning with node.js, mongodb ... I want to make a web application that connects to a mongodb and to create a CRUD product. I've created my API Restfull with express.js and mongodb. Now I have to do the frontend and I'm lost. For the Frontend I plan to use AngularJS, ReactJs or EmberJS but I do not know what should I choose to start, because I've never used any of these technologies and I would use it more easy to use and understand if possible (or if there are other, easier). Any tips?