- All the types are in
src/@types
- All the API service are in
src/services
- All the images and styles are in
src/assets
- Reusable UI Components are in
src/components/ui
- Main Layout is in
src/components/layouts
- Private, Protected & Public route components are in
src/components/route
- Shared components used in the Layouts are in
src/components/template
- All the pages or views are in
src/views
- All the shared components used by the views are in
src/components/shared
- Navigation configs are in
src/configs/navigation.config
- Route configs are in
src/configs/routes.config
- All the constants are in
src/constants
- All the route names(URL path) are in
src/routes
- Shared app state and store details are in
src/store
- All the utility functions are in
src/utils
- All the views are in
src/views
- Add an unique nav key in
src/constants/navigation.keys.constant.ts
- Add a path constant in
src/constants/navigation.paths.constant.ts
- Add an item in
src/configs/navigation.config
to include nav key and path constant - Add an icon for the menu item in
src/configs/navigation-icon.config.tsx
if needed - Add the
subMenu
recursively if needed
- Find the respective array to add new item or add a new array in
src/configs/routes.config
of typeRoutes
- Use the nav key and path constant created in the previous menu item creation step
- Create a component in
src/views
and use lazy imports insrc/configs/routes.config
This project was bootstrapped with Create React App.
Online demo for the template: https://mybl-cms.web.app/
We are using the followings:
- React
- React Redux
- Redux Toolkit
- Formik
- Yup
- Tailwind v3
- Framer Motion
- Create React App v5
- React Router v6
- Redux Thunk
- React Icons
- React Table
- Google Map React
- Apex Charts
- Full Calendar
- Draft JS
- Vite
Please note, you have to use npm
as package manager.
In the project directory, you can run:
Installs all the dev dependencies.
Runs the app in the development mode.
Open http://localhost:3000 to
view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about
running tests for more
information.
Builds the app for production to the build
folder.
It correctly bundles React in production
mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Visual Studio Code is recommended. If you are using it, we recommend installing the following extensions:
We use Husky as a pre-commit hook for Git and Prettier for code formatting.