Same git repository for a web and mobile app using re-frame. Any tips?

Hi,

we’re starting a new frontend project, using reagent/re-frame, and we need to make a mobile web application (React) and a mobile app (React Native). Since I want maximum reuse of the code, I want only the views to be distinct, all the re-frame code to be exactly the same (maybe 99% :slight_smile: ). Any tips, if someone already did something similar?

Thanks,

In the end we decided that the common code will be in a base folder, then we’ll have one folder with a deps.edn for the clj code (server) and two folders for the web and mobile each having their shadow-cljs.end:

projects
-base (clj, cljs, cljc)
-server
-web
-mobile

1 Like