Skip to content

Instantly share code, notes, and snippets.

@ManishPoduval
Last active February 17, 2021 07:14
Show Gist options
  • Save ManishPoduval/430d36ce753f7216529e12adad288355 to your computer and use it in GitHub Desktop.
Save ManishPoduval/430d36ce753f7216529e12adad288355 to your computer and use it in GitHub Desktop.

Express-Handlebars setup

We will use this package Ironlauncher to setup our code like we did the past week.

Note: Mac Installation is also the same as Windows. If you get erros don't panic. Relax, read the error, search online for a fix. Read the last part of this document for possible errors and fixes

Steps

  • Install the package
    • Windows: Run the command npm install -g ironlauncher in your PowerShell anywhere.
    • Mac: Run the command sudo npm install -g ironlauncher in your terminal / iterm

(Since we're installing the package globally in our machine it does not matter where you run this command)

  • Once installed go to your module2 project folder and run the following command
    ironhack <ProjectName>
    
    an example of that would be :
    ironhack learning-axios
    

If everything works well you will see this structure

Open this in VSCode and run npm run dev or npm start Note: You do not need to install packages. It's already installed. So please don't run npm install again

If you're getting errors read further else ignore

Follow this link to fix errors in windows or mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment