Top

Let's begin

Thank you for buying the Kreta theme

Main dependancies
  • Vue 3.5.18
  • Bootstrap 5.3.7
  • Typescript 5.8.0
  • Scss

Kreta Vue theme is pure Vue theme, Yes! you read correct, it's No Jquery Vue template including all feature and functionality with ease of integration for your project. Kreta template documentaition will help you to understand Vue from scratch to making perfect real time dream application.


Follow the documentation carefully for solving your issues in minutes, Apart from that if you don't find solution when you following the docs you can raise a support ticket for your issue from pixelstrap.freshdesk.com


Kreta is a responsive Vue template that is based on the CSS framework Bootstrap 5 and it is built with Sass Sass compiler makes it easier to code and customize. If you are unfamiliar with Bootstrap, visit their website and read through the documentation. All of Bootstrap components have been modified to fit the style of Kreta and provide a consistent look throughout the template.


Before you start working with the template, we suggest you go through the pages that are bundled with the template. Most of the template example pages contain quick tips on how to create or use a component which can be really helpful when you need to create something on the fly.

Prerequisites

Before you begin, make sure your development environment includes Node and an npm package manager.

1.Node.js

Install Node.js using downloaded file.

To check your node version, run node -v in a terminal/console window.

2.Npm package manager

Vue CLI, and Vue apps depend on features and functionality provided by libraries that are available as npm packages. To download and install npm packages, you must have an npm package manager.

This Quick Start uses the npm client command line interface, which is installed with Node.js by default. To check that you have the npm client installed, run npm -v in a terminal/console window.

For better understanding Vue we suggest you to once go through official documentation of Vue from VueJS.org

Vue setup

If you want Kreta template setup then directly follow next Kreta setup section

Installing Vue CLI

You use the Vue CLI to create projects, generate application and library code, and perform a variety of ongoing development tasks as it is a progressive framework for building user interfaces.

Install the Vue CLI globally.

To install the CLI using npm, open a terminal/console window and enter the following command:

npm install -g @vue/cli

Create Initial application

1. Run the CLI command vue create and provide the name my-app, as shown here:

vue create my-app

2. The vue create command prompts you for information about features to include in the initial app project. Accept the defaults by pressing the Enter or Return key.

Run Application

1. Go to the workspace folder (my-app).

cd my-app

2. Launch the server by using the CLI command npm start

npm run serve

If you have already download and install node.js and Vue CLI then ignore prerequisites accordingly.

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.

Vue CLI

Install Vue CLI Using:

npm install -g @vue/cli

Setup Kreta template by

1) Download and extract an Kreta template from themeforest

2) Extract it and then go in to template folder.

cd template

3) Import all dependency by installing npm command

npm install

4) Now you are in stage to successfully run Kreta using below command:

npm run serve

Build Application

1. Build you application for host on server using below command:
npx vite build

It will create one dist file in your template folder. Make zip of dist folder. so here you are ready to upload your template on server.

If you’re using Apache HTTP Server, you need to create a .htaccess file in the public folder by pastng below code

  • Options -MultiViews
  • RewriteEngine On
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteRule ^ index.html [QSA,L]

Now upload your dist folder on public folder

if you want to add subdirectory for your build then below two step:

1. add your sub directory name in public path in vite.config.ts like(

import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'

// https://vite.dev/config/
export default defineConfig({
  base:'/kreta/'
  plugins: [
    vue(),
    vueDevTools(),
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    },
  },
})