Skip to content

jonthornton07/front-end-shared-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome

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.

Key Focuses

  • 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.

Spinning Up

  • 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 run
      • npm 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •