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

**URL:** https://clojureverse.org/t/same-git-repository-for-a-web-and-mobile-app-using-re-frame-any-tips/8449
**Category:** How to?
**Tags:** re-frame, react, clojurescript
**Created:** [December 20, 2021, 9:12am UTC](https://clojureverse.org/t/same-git-repository-for-a-web-and-mobile-app-using-re-frame-any-tips/8449 "2021-12-20T09:12:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![danbunea](https://clojureverse.org/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@danbunea](https://clojureverse.org/u/danbunea)
#### Post date: [December 20, 2021, 9:12am UTC](https://clojureverse.org/t/same-git-repository-for-a-web-and-mobile-app-using-re-frame-any-tips/8449/1 "2021-12-20T09:12:58Z")

</div>

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% 🙂 ). Any tips, if someone already did something similar?

Thanks,

---

<div class="post-metadata">

### Author: ![danbunea](https://clojureverse.org/letter_avatar_proxy/v4/letter/d/e47774/32.png) [@danbunea](https://clojureverse.org/u/danbunea)
#### Post date: [April 11, 2022, 3:41pm UTC](https://clojureverse.org/t/same-git-repository-for-a-web-and-mobile-app-using-re-frame-any-tips/8449/2 "2022-04-11T15:41:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [October 11, 2022, 3:42am UTC](https://clojureverse.org/t/same-git-repository-for-a-web-and-mobile-app-using-re-frame-any-tips/8449/3 "2022-10-11T03:42:27Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
