Setup and Installation:

  1. Clone frontend-web GitHub repository. You need to get access as this is not a public repository.
          
           git clone https://github.com/infant-nutrition-project/frontend-web.git
          
  2. Open terminal, cd to the folder frontend-web and run the following commands to install necessary packages. You will need to download npm to run these commands, you can do that here.
           cd dev-dashboard 
           cd dashboard-frontend
           npm install
         
  3. To run the code and host the website locally run the following code from the dashboard-frontend folder. Note that the browser should launch automatically with the website. As you make changes to the code, the website will automatically reflect these changes as soon as you hit save. 
          
           npm start

Troubleshooting:

  1. If you get the following errors while running npm install 
          
        gyp verb check python checking for Python executable "python2" in the PATH

    gyp verb `which` failed Error: not found: python2

    Try to install Python 2.7, set the configuration of npm by npm config set python python2.7  retry the command

  2. If you get the following errors
        gyp: No Xcode or CLT version detected!

    gyp ERR! configure error

          A detailed solution can be found here.



  • No labels