Ynex – Nuxt3 Premium Bootstrap-5 Admin Template

Note:-

Please refer Faq's page in documentation itself for queries and customization like Colors, RTL, Dark style..etc.

NuxtJS Setup

Create a workspace and initial application
  1. Run the following command to install the Nuxt.js CLI globally
  2. npm install -g create-nuxt-app
  3. GO to directory where you want to create the Nuxt Project.
  4. Open your terminal or command prompt. With the same directory you are intended.
  5. npx create-nuxt-app Your-project-name
  6. Follow the prompts to configure your project. You can choose the features you want to include, such as Routing, SSR, ESLint, and others.
  7. Once After the project is create come to the project directory in command prompt.
  8. cd You-project-name
  9. Run the following command to start your Nuxt.js application:
  10. npm run dev

    This command will start the development server, and you can access your Nuxt.js application in your browser at http://localhost:3000.

Ynex Setup

Prerequisites
Node.js

Download latest version of node.js from nodejs.org.
Install Node.js using downloaded file.
To check your node version, run node -v in a terminal/console window (cmd)

Setup an SashTemplate by
  1. Download the Ynex.rar/zip file.
  2. Extract it and then go in to Folder here you will see a Ynux Folders
  3. For Example, Here I'm Choosing Nuxtjs-file
  4. Here, I'm Choosing Nuxtjs-file.
  5. Now from a terminal window, navigate to the directory containing your application
  6. Ynex/Nuxtjs-file>
  7. You can import all dependency by installing npm command
  8. npm install
        (or)
    yarn install
  9. Now you are in stage to successfully run Sashusing below command:
  10. npm run dev
        (or)
    yarn dev
    Once you serve your application by default it will take their default port using http://localhost:3000/
Note

    basically npm install is used to install all dependencies or devDependencies from a package. if there will be any dependencies which need to be installed but getting error message while installing, then use --force will help to install those dependencies.

    The --force argument will force npm to fetch remote resources even if a local copy exists on disk. It will be on a last-dependency-downloaded-wins basis and will overwrite any previously downloaded dependencies.

    npm install --force
Note
    npm install

    If your are using npm install, You have to delete the yarn.lock

    yarn-lock file

    (or)

    yarn install

    If your are using yarn install, You have to delete the package-lock.json

    (or)

    yarn install --network-timeout 1000000

    If yarn will getting timeout issue use this command

    package-lock.json file

    we have to use only one file example: (for yarn yarn-lock) & (for npm package-lock.json) file

    basically npm i is used to install all dependencies or devDependencies from a package. if there will be any dependencies which need to be installed but getting error message while installing, then --force will help to install those dependencies.

    The --force argument will force npm to fetch remote resources even if a local copy exists on disk. It will be on a last-dependency-downloaded-wins basis and will overwrite any previously downloaded dependencies.

    npm install --force
    if there is peer dependency issues while installing
    it will always skip peer dependencies (whatever those are) during installation even if there are no issues.
    npm install--legacy-peer-deps

    we have to use only one file example: (for yarn yarn-lock) & (for npm package-lock.json) file

Note: Nuxt3 Application is Both client side as well as Server side Rendering. So the deployment may differ depending on the way the application want to host. We are describing how to upload the Static Hosting(Static Site Generation)

Static Hosting Nuxt3 Application

To Upload your static application for host on server using below command:

    Generate the Static Site
  1. Before upload, you should need to make some changes in the nuxt.config.ts file like below if you are uploading into sub-directory, If you are uploading them in public then you can remove or you can add '/'.
  2.                       app: {
                            baseURL: '/ynex/preview', // Replace with your desired base path
                          },
                          publicPath: '/ynex/preview/',
                          vite: {
                            define: {
                              'import.meta.env.BASE_URL': JSON.stringify('/ynex/preview/'),
                            },
                          },
                          env: {
                            BASE_URL: '/ynex/preview',
                          },
                        
  3. Before uploading, you need to generate the static site using the Nuxt.js build process. Run the following command in your Nuxt.js project directory:
  4. npm run generate

    This command will create a dist or .output/public directory containing the static files of your Nuxt.js application.

    Upload those files in your server to access them globally.

Installation Video