question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Directory for shared code between client and server

See original GitHub issue

Hi, loving your project so much, it really helps me to get into full stack development much easier.

I have a question about project structure, it seems like the common part for both frontend and backend is inside the client/core/src/models directory, could you please explain why did you choose this approach instead of having a separate common module in the project root directory?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hamboomgercommented, Mar 30, 2020

@shanhuiyang oh okay, now it makes sense to me. Thank you for reply 😃

0reactions
shanhuiyangcommented, Mar 30, 2020

By the way, I also would like to create a common folder as you suggested. So I will keep this issue opened and find a time to resolve this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing JavaScript Code Between Client and Server - Medium
ESLint, Babel configuration files etc.) that is common to all packages in the monorepo. Then separate packages live in the 'packages' folder.
Read more >
javascript Share code between my client and my server folders
I have a directory that contains two folder : ...
Read more >
Code references between client/server/shared folders
I believe that the code in the client folder gets compiled by the GWT compiler into JS only, while the code in the...
Read more >
A guide to sharing code between projects - Christian Lüdemann
A shared library means packaging the shared code into some module using semantic versioning (major, minor and patch numbers) and distributing ...
Read more >
Share code between react client and express server - YouTube
Share code between react client and express server while using typescript and viteMore about me: https://www.nathankrasney.comgithub repo: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found