Full-Stack starter kit is your starter monorepo for building apps both in NodeJs and React. Monorepo is setup using the dev tool nx.dev. We can create multiple apps and libraries via nx.dev and use them in different applications and publish npm packages.
- Getting started
- Built with
- Packages
- 🚀 Admin
- 🚀 Backend
- 📦 Common-Backend
- 📦 Subscription
- 📦 UI
Instruction to run the app
Note: Sample instructions
- nx.dev
- nestjs
- next.js
- tsdx
- inversify
- commitizen
- commit-lint
- husky
- prettier
- eslint
- cz-ccgls
- docker-compose
- envoy (grpc proxy)
- verdaccio (private package repository)
Library consist of 5 packages
Admin panel dashboard
graph LR
A[Admin] --> C(UI)
- Internalization
- Grpc
- Server sider rendering
- Theme Switcher
- NextJs
- Typescript
- StyledComponents
- Tailwindcss
- Redux-Toolkit
- Redux-Observable
- Redux-Epics
- Redux Dev Tools
- Epics
- Rxjs
- Typesafe-Actions
- Redux-Logger
- Postcss
Backend Server provide api interface in Graphql and Grpc. Use Inversify.js (a dependency injection tool) to inject the (business logic layer + database layer) into the app imported via libraries or packages.
In this monorepo we import the Subscription library which implemented the Services
and Database
Interface provided by the Common-Backend. User can interact with Subscription Library via Grphc and Graphql interface provided in the Backend application via NestJS farmework.
graph LR
A[Backend] --> C(Subscription)
C --> D(Common-Backend)
A --> D
- Subscription
- Typescript
- NestJS
- Inversify
- Grpc-Tools
- Pbts
Provide Generic interface and types for
- Database
- Config
- Service
- Pagination
- Errors
- Logger
Also implemented the common functions that can be used in verious libraries/app build using common-backend. In our case its used in Subscription Library and in Backend app.
- Typescript
- Inversify
- Tsdx
- Bunyan
Implement the Subscription Service base on the Service interface provided by Common-Backend
.
Implement all the business logic , validation and database layer in it. Also Implement the Database Service base on interface provided by common-backend
It save infromation in the RavenDB.
Note: Also implement the unit testing . You can run the project as the standalone library without having any kind of transport layer.
- Add
- Update
- Delete
- List
- Typescript
- Raven DB
- Inversify
- Tsdx
- Yup
📦UI
UI is the library of different UI elements build from sacratch or write wrappers on top of 3rd parties libraries. We can use UI elements in different apps and built our UI on top of it.
- Background
- Button
- Dashboard
- Dropdown (popper.js)
- Header
- Hooks
- Icon
- Input (formik)
- Notifiaction
- Table (react-table)
- Sidebar
- Theme-Switcher
- Typescript
- Storybook
- React
- Tsdx
- Yup
- Framer-Motion
- ahooks
- Styled-Components
- popper.js
- formik
- react-icons
- react-table