Hey guys, at this point i’m so tired of trying to find good way of making cloud app with ACE and AtlasKit that i don’t see any options, but ask you for help
What’s the problem anyway?
The problem is that i don’t know how to configure my project to be productive and efficient.
That's a long text of my problem, what i've tried and how, and u can just skip it if you have any ideas already and what i think Atlassian might do to make cloud development better with their official libraries
How i think things works.
ACE creates skeleton project with good old way of creating apps with multiple pages served by server, injecting some good variables with hbs templates, for example JWT token needed to authenticate requests to ACE.
I want to develop with React and atlasKit. Tool that is most popular in react community is react-create-app (RCA). It provided a very good setup to work with React, but it’s very good if your client and server are separated and client makes CORS requests that server allows to be accepted. With ACE it’s not the case, right, so i can’t use RCA out of the box, i need builded assets to exist in server public folder to serve them. Ok, one solution is to make build script of RCA to be executed and src folder watched to trigger rebuild, but that’s production build, which slows down a loooot and doesn’t provide source maps for development ofc it’s harder to develop with that approach, mainly because of build speed. There is no way to get those files.
Pretty much ACE forces me to use custom webpack setup (or other bundler or pipeline whatever) to use React, maybe it would be best if ACE (and atlassian-spring-boot for Java guys, since both are official) had setup for using AtlasKit since both AtlasKit and ACE are meant for development of one thing - cloud add-on.
Maybe that’s possible by just using atlassian-connect to make my own implementation of authentication with instances that want my add-on to be installed pretty much everything that ACE implements (or atlassian-spring-boot), but make it so that i could separate my client from server if it’s even possible.
What i’ve tried to do
- Tried to tie CRA and ACE with various ideas from configuring proxy options of CRA which doesn’t work because i don’t have access to assets and can’t even make requests because i don’t have token (doesn’t succeed)
- Asked help here, doesn’t got viable option :C
- Tried to create my own project setup with webpack (doesn’t succeed) - i’m not that experienced and it felt rly not good.
I’m sure everyone who’s developing for cloud faced this problem some way or another.
Does anyone has template project for creating cloud add-ons with React and preferably ACE or at least Node? Would appreciate it a lot. Or any ideas, advices.