Skip to main content

Posts

Showing posts with the label Next js

BSMS complexities and issue i face and their solutions

Issue1 I import css file in next js component but i can't see it in head tag in browser by inspecting page. When you import css fie in ou component it not automatically add them in your "head" tag. Usually, it optimizes CSS delivery by automatically code-splitting and lazy-loading stylesheets. This means that stylesheets are loaded when they're needed, improving performance. I have implemented this practically in BSMS System. Example // components/Layout.js import Head from 'next/head' ; import "../../public/styles/globalStyles.css" ; const Layout = ( { children } ) => { return ( < div className = "layout" > < Head > {/* Global styles */} < link rel = "stylesheet" href = "/styles/globalStyles.css" /> </ Head > {children} </ div > ); }; export default Layout ; // pages/Home.js import Head from 'next/head' ; con...

BSMS Project Development in Next js Framework

 BSMS system is sms campaign management system. That broadcast multiple sms campaigns of different vendors at the same time. This project will be develop under different phases. Phase1.  Project development environment setup. Tool installation into the pc Phase 2. Fresh next js project installation with fresh boiler plate. Phase 3. Make folder structure for the admin panel pages. Phase 2 implementation Project is installed with the following command --npx create-next-app@latest After hitting this command, answer few questions to setup project. Phase 3 implementation Folder structure Inside src/app router the folder structure will divided into two parts 1. Admin 2. Client 1. For Admin Admin folder structure must be like so 1. Authentication 1.1 admin/auth/login/page.tsx 1.2 admin/auth/forget-password/pages.tsx 1.3 admin/auth/change-password/pages.tsx 1.4 admin/auth/logout/page.tsx 2. Dashboard 2.1 admin/dashboard/page.tsx show all sms stats, counters 3. Networks 3.1 admin/netwo...

1. What is Next js and why we need to use it in our projects ?

Next js Optimize your application in the way so you can render your pages/components extremely fast. Later on we will see how it works. So why we need NEXT JS. what does Next JS do that REACT doesn't ? 1) Next js simplifies the development process. 2) On top of that is optimize your web application. 3) Rendering: This is primary or main difference b/w react and next js. Rendering :  REACT JS render UI in client side and NEXT JS render UI in server side. NEXT JS also provide flexibility in rendering option. So question is...! What is client side rendering and server side rendering ? Client Side Rendering is browser rendering that happened in user devices. User ------> request to ----- Server Server send back the HTML/CSS/JS files in browser and execute the code and than finally show website  to user. Server Side Rendering : The web pages renders on server before transmitting it to the client device. User ------> request to -----Server it process the request and render the...