We use Gulp to automate the build flow. Gulp handles repetitive tasks like compiling, bundling, and live reloading. Learn more here. Follow the steps below to install all prerequisites:
Download and install the latest LTS version of Node.js.
Download Node.jsEnsure that you have Git installed and running on your system.
Install GulpMake sure to have latest version of PHP installed & running on your computer. If you already have installed PHP on your computer, you can skip this step.
Make sure to have the latest version of xampp or installed & running on your computer. If you already have installed Xampp on your computer, you can skip this step.
To setup, follow the below mentioned steps:
1. Unzip your project and place it inside the xampp/htdocs
folder.
2. Changes terminal's directory to run project. eg: cd UBold
3. You can use any following package manager: Bun, Yarn or NPM
If you don't have bun installed on your PC, use the
npm i
-g bun or sudo npm i -g
bun to install
| Command | Description |
|---|---|
bun i |
This would install all required dependencies
in node_modules folder.
|
bun dev or gulp
|
This would compile all the resources in assets folder. |
bun run build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
bun run rtl |
Compiles and bundles assets for production (RTL version) |
If you don't have yarn installed on your PC, use
the next
command npm i -g yarn or sudo npm i -g yarn
| Command | Description |
|---|---|
yarn |
This would install all required dependencies
in node_modules folder.
|
yarn dev or gulp
|
This would compile all the resources in assets folder. |
yarn build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
yarn rtl |
Compiles and bundles assets for production (RTL version) |
npm comes preinstalled when you install Nodejs
| Command | Description |
|---|---|
npm i or npm i --force |
This would install all required dependencies in
node_modules
folder.
|
npm run dev or gulp
|
This would compile all the resources in assets folder. |
npm run build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
npm run rtl |
Compiles and bundles assets for production (RTL version) |
4. Start the Apache server from Xampp panel.
5. Visit localhost/UBold/src after running Apache server locally.
You can run the following commands to run project locally or build for production use:
You can run this app following package manager: Bun, Yarn or NPM
If you don't have bun installed on your PC, use the
npm i
-g bun or sudo npm i -g
bun to install
| Command | Description |
|---|---|
bun i |
This would install all required dependencies
in node_modules folder.
|
bun dev or gulp
|
This would compile all the resources in assets folder. |
php -S 127.0.0.1:8000
|
Starts the PHP server on 127.0.0.1:8000 address |
bun run build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
bun run rtl |
Compiles and bundles assets for production (RTL version) |
If you don't have yarn installed on your PC, use
the next
command npm i -g yarn or sudo npm i -g yarn
| Command | Description |
|---|---|
yarn |
This would install all required dependencies
in node_modules folder.
|
yarn dev or gulp
|
This would compile all the resources in assets folder. |
php -S 127.0.0.1:8000
|
Starts the PHP server on 127.0.0.1:8000 address |
yarn build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
yarn rtl |
Compiles and bundles assets for production (RTL version) |
npm comes preinstalled when you install Nodejs
| Command | Description |
|---|---|
npm i or npm i --force |
This would install all required dependencies in
node_modules
folder.
|
npm run dev or gulp
|
This would compile all the resources in assets folder. |
php -S 127.0.0.1:8000
|
Starts the PHP server on 127.0.0.1:8000 address |
npm run build or gulp build
|
It bundles with production mode. Your app is now ready to be deployed. |
npm run rtl |
Compiles and bundles assets for production (RTL version) |