Topics

Tribe Support

Tribe Support's Topics

Rajkumar Mundel

Rajkumar Mundel

April 14 2018

Anahita's frontend React App - Setup on LocalHost and GetAnhita.com

Hello,I did setup of Anahita React App today. Can I connect my local Anahita React App setup to GetAnahita.com ?Please tell me where I need to configure ?I fount at 2 places... ONE - registerServiceWorker.js and SECOND - src/api/index.js - axios.defaults.baseURLBut I am not able to login #AnahitaReact #ReactJS

Rastin Mehr
Rastin Mehr
April 14 2018 Permalink
The React App doesn't work with the live GetAnahita.com yet because of CORS configuration. It also doesn't work with the master branch, because I haven't yet merged the API changes in my fork https://github.com/rmdstudio/anahita
Rastin Mehr
Rastin Mehr
April 14 2018 Permalink
I have a local development site that is working at the moment for whatever we've developed so far.
Is there any way we can also test Anahita React Frontend with Live Site ?
Are you planning to make to open in next few days ?
"My local Anahita React Frontend" with Live Site (GetAnahita.com)
Rastin Mehr
Rastin Mehr
April 14 2018 Permalink
For live site to work I need to add CORS configuration to the live site server which would allow anybody on the web to make REST calls. It's not a good idea. As soon as we have enough features developed in the React App, we will do a gradual migration of the live website to the single page app version.

We haven't gone that far yet. It's not even an app at this point. It only does basic functions for people and actors. The goal is to find the basic react and redux patterns for Anahita and it is still a work in progress.
Rajkumar Mundel liked this
:)
Sure. Got your point :)

Powered by Anahita