
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
github.com/zaf07/server-driven-ui
SDUI implementation base
About this reposiory
This is my practice and implementation of developing an aplication using the Server Driven UI method. I am trying to follow the principles from the Twelve Factor App.
Starting Application
Note: To start the application simply run
make start
Frontend:
|-- frontend-vite
|-- sdui
|-- src
|-- components
| |-- pageComponents 💡 This directory contains all components like Nav, Footer, Main Component
| | |-- Footer
| | |-- Navigation
| | |-- Main
| |
| |-- sub-components 💡 This is where we store sub components. Eg. Button, Text/Sub-Text, Image or Paragraph Components (Mainly used in Sections)
| | |-- Button
| | |-- Para
| | |-- Image
| |___|-- Text
|
|-- sections 💡 Sections are positional layouts. For example, Gridx2/Gridx4, Rowx2/Rowx4
| |-- GridTwo
| |-- GridFour
| |-- RowTwo
| |-- RowFour
|
|-- loaders 💡 Loaders make API calls to Layout API to fetch layout data for each page
| |-- AboutPageLoader
| |-- BrowsePageLoader
| |-- CheckoutPageLoader
| |-- CartPageLayout
|
|-- pages 💡 Pages are components for each page/path/route the application has. Treat this as the parent component for each page/path/route
| |-- BrowsePage
| |-- BrowsePageDefault.jsx
| |-- CustomBrowsePage.jsx
| |-- CheckoutPage
| |-- CheckoutPageDefault.jsx
| |-- CustomCheckoutPage.jsx
| |-- CartPage
| |-- CartPageDefault.jsx
| |-- CustomCartPage.jsx
| |-- AboutPage
| |-- AboutPageDefault.jsx
| |-- CustomAboutPage.jsx
| |-- ContactPage
| |-- ContactPageDefault.jsx
| |-- CustomContactPage.jsx
| |-- ErrorPage
| |-- DefaultErrorPage.jsx
| |-- CustomErrorPage.jsx
|
|-- store 💡 Store stores all global state for the application. Stuff like Products Inventories, User Data, Cart State.
| |-- ProductsStore
| |-- ProductStateProvider.jsx
| |-- CartStore
| |-- CartStateProvider.jsx
| |-- UserStore
| |-- UserStateProvider.jsx
|
|
Backend:
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.