However, my issue is, that my pages are all relying heavily on dynamic data.
And it’s using appconnect to show/hide things etc.
So I need the front-end dev to have access to this data…
I’m not sure how to approach this?
So far I’ve simply made a new folder where I copy pasted the rendered version of the page into html.
And I included the stylesheets and appconnect scripts:
This works partly…
But there’s more content, for example this overlay, which only shows when the user is logged out AND not opted in.
So this is again relying on data that I get from server connect.
There are 2 easy ways, first is to just share the Server Connect code with the developer, if it is with NodeJS he can just run it locally. Secondly you could place sample data in JSON files, with the same structure as Server Connect would return and then let the developer work with that data.
Run a a quick node server to fix the CORS error and load the data properly
Alternative method
When you send him the full project, he can just run npm start and that will run the node server and the website is available at http://localhost:3000 . If you send him the fill project you could exclude the node_modules , .git and .wappler folder, he then has to do a npm install first to install the modules.
From my day to day job (larger enterprise and entertainment platforms):
Back- and front end(s) are separate projects with independent teams.
Backend / Platform development is done to a certain stage.
API’s who are not finished yet are mocked (“design by contract”).
BE is published to a accessible dev- or staging system.
FE Developer(s) (web / app) create their assets against this dev or stage system.
With smaller projects, e.g. smaller PHP based sites (Wordpress, Typo3, Laravel, …), the Frontend-Dev has the project locally running (LAMP/MAMP) and needs to update the backend from time to time from the Repo.