Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/splitting libraries #162

Merged
merged 29 commits into from
Mar 12, 2024
Merged

Refactor/splitting libraries #162

merged 29 commits into from
Mar 12, 2024

Conversation

swh00tw
Copy link
Collaborator

@swh00tw swh00tw commented Mar 11, 2024

Description

Add three shared libs.

  • recnet-date-fns: RecNet's library for Date-related functions.
  • recnet-api-model: RecNet's api data model. Apps can use these schemas to validate incoming request or response and enjoy the type-safety API developing experience.
  • recnet-jwt: Define JWT schema for our app. Use this for verifying JWT at api and issue at web app.

They are not perfect now since our migration haven't finished. Feel free to modify these libraries while developing.

Related Issue

N/A

Notes

To follow the best practice of Nx, most of the logic should be put under /libs. Decomposing into shared libraries has the following benefits:

  • Code sharing
  • Faster build time

Read more:

Testing link: https://rec-oz16z3yxb-recnet-542617e7.vercel.app/

TODO

  • Paste the testing link

Copy link

vercel bot commented Mar 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rec-net ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2024 10:22pm

@swh00tw swh00tw changed the title Refactor/spliting libraries Refactor/splitting libraries Mar 11, 2024
@swh00tw swh00tw requested a review from joannechen1223 March 11, 2024 00:34
@swh00tw swh00tw marked this pull request as ready for review March 11, 2024 00:36
@swh00tw swh00tw merged commit dfd9bfe into master Mar 12, 2024
3 checks passed
@swh00tw swh00tw deleted the refactor/spliting-libraries branch January 9, 2025 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants