Development

View Categories

Development

2 min read

Fliqs template is developer-friendly and contains source files + gulp tasks.

Make sure, that we will not help you with any troubles that you faced with source builds, so if you don’t have any experience with npmgulp and webpack, please first learn more about these tools. These sources only for developers.

Requirements #

  1. Node.js and npm – https://nodejs.org/en/

Getting started #

  1. Unzip downloaded template and open /fliqs/ folder
  2. Install node modules by running the terminal command npm install
  3. Start development using npm run dev
  4. For build production files use npm run production (don’t forget to change the production config in package.json)

dev and production tasks will build files to /dist/ folder.

Configure Production Task #

All production configurations placed in package.json. How it looks by default:

“production”: {
“google_analytics”: “UA-48958097-5”,
“protect”: [
“html.nkdev.info”,
“You are not permitted to use template without license!”,
“https://nkdev.info/”
]
}
  1. Google Analytics code for automatic integration
  2. Protection script, that will throw alert automatically, if someone downloads your website code and try to run it on a different domain

You may also disable these configurations, so your code will look like this:

“production”: {
“google_analytics”: false,
“protect”: false
}

Configure HTML #

Configurations for HTML files places in /src/html/data/global.json

Troubleshooting #

Sometimes, when you run dev the task, you will only see a white screen in your browser preview. In most cases, this is easily resolved when you install PHP in your system. But sometimes it is not working, and you need to customize the browserSync task manually. To customize it, follow these steps:

  1. Open gulpfile.babel.js file in your code/text editor
  2. Find this code part:
$.connectPhp.server(gulpConfig.php, () => {
    browserSync(gulpConfig.browserSync);
});
  1. And change it to this one:
browserSync.init({
    server: {
        baseDir: gulpConfig.php.base,
        open: true,
        notify: false,
    },
});

Powered by BetterDocs

Top

Simplified Solution to care in every step.

We are a team of experts united around one crucial aim: to resolve the global market’s problems with the help of technology. Our innovative solutions allow healthcare institutions to enhance the patient experience, reduce healthcare administrative costs, and ensure data security. By providing healthcare software development services today, we believe that we will help a lot of people get better medical services tomorrow.

CONTACT ADDRESS
2340 S. Highland Ave suite 250 Lombard IL 60148

GENERAL INQUIRIES
[email protected]

GENERAL INQUIRIES
+1 8888 7777 93