Setup


We are using gulp which allows to have complete automatation for build flow. In case if you don't know - Gulp is a gulp is a toolkit for automating painful or time-consuming tasks in development workflow, so you can stop messing around and build something. You can read it more about it here. Please follow below steps to install and setup all prerequisites:

Prerequisites

Please follow below steps to install and setup all prerequisites:

  • Nodejs

    Make sure to have the Node.js installed & running in your computer. If you already have installed nodejs on your computer, you can skip this step

  • Gulp

    Make sure to have the Gulp installed & running in your computer. If you already have installed gulp on your computer, you can skip this step. In order to install, just run command npm install -g gulp@3.9.1 from your terminal.

  • Git

    Make sure to have the Git installed & running in your computer. If you already have installed git on your computer, you can skip this step

Installation

To setup Adminox, follow below mentioned steps:

  • Install Prerequisites

    Make sure to have all above prerequisites installed & running in your computer

  • Install Dependencies

    Open your terminal, go to your folder and enter the command npm install. This would install all required dependencies in node_modules folder.

After you finished with above steps, you can run the following commands to run project locally or build for production use:

Command Description
gulp Runs the project locally, starts the development server and watches for any changes in your code, including your html, javascript, sass, etc. The development server is accessible at http://localhost:3000.
gulp build It will create a build folder inside your folder. It bundles React with production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes. Your app is now ready to be deployed.
Troubleshooting
  • I am getting error "Error: ENOENT: no such file or directory, scandir '/root/website/node_modules/node-sass/vendor'" while running npm install, what should I do?

    If you are getting this error, there could be multiple root causes, please try following workarounds:

    • 1. Run npm rebuild node-sass to re-install node-sass
    • 2. Delete node_modules folder and re run npm install
If you are having any question or getting difficulty while installation up Adminox, don't hesitate to contact us. We would be happy to assist you.