Hey there! Welcome to my POC architecture. This goes out to just see how much code can be shared between ReactJS and React Native projects. Extra credit would be being able to share code between a NodeJS server as well.
- Reuse as much as possible. Remember this is all theory but more sharing the better.
- It needs to work on web, desktop, iOS and Android.
- Business logic must be sharable, let's not forget that.
- Sharing libraries is also ideal.
- Currently this is a little rough, I will fix it.
- In every
shared/*
directory run npm run build. This will generate all the dist files. - In every
shared/*
directory run npm link after the above. This will generate all the local npm linking. - In every
apps/*
directory runnpm link shared-api-layer
npm link shared-data-layer
npm link shared-api-models
npm install
- Starting apps
- running website just run
npm start
- running desktop run
npm start
after starting website - running mobile run
npm ios|android
- running website just run
- In every