SEO, Role Based Authentication, and React Query and more, basic configurations added to the boilerplate #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I have added a few more boilerplate features into the repo. These are things I've found myself having to constituently implement.
SEO
The main features I focus was to add more SEO configuration - such as the full MetaData object, JSONltd, Sitemap generation and a Robots.txt file, and Google Analytics Tag.
ShadCN basic components
I also added more basic ShadCN components that a basic web app/website would need - particularly the Form components.
React Query
This is a personal preference, as I know not everyone likes/would want to use this. But personally I've found React Query as the best way to do client-side mutation & data fetching in React while still keeping the code modular and maintainable.
Templated File Strucutre
I've also added empty folders to provide the outline for the file structure (this also a personal preference)
Primsa
I've added the very basic configuration for Prisma, this again is a personal preference which I leave to the maintainers to make the final decision to add.
Clerk Authentication
Clerk has been configured for the site (it uses the hosted clerk /login & /signup pages) and has Role Based Authentication implemented - also a personal preference.
Env
The env files have also been updated to support these additions, particularly for the Database URL
Change Log:
This is my first proper commit to a community project. So my apologies if it doesn't match the contribution standards yet.
Hope these additions provide some benefit and a starting ground for further contributions.
Thanks, have a good day further!