Skip to content

CESA-IUST/advanced-js

Repository files navigation

Advanced JS Workshop

Initialize the project

Consider these steps after cloning the project:

  • First of all, make sure you have node installed on your system by running the following command in your terminal:
  node -v

Getting v[xx].[xx].[xx] as output means it's installed, otherwise download Node.js installer for your OS through this link.

  • Then, you should install your node modules by running the following command in your cmd:
  npm install

That's it, now, you can run your JS scripts by running the following command:

  node [file_name].js

How to handle browser CORS policy error

  • Create an empty directory in your C:\Users\[your_username]
  • Add chrome.exe file location path to your environment path variables (C:\Program Files\Google\Chrome\Application - if you haven't changed the default installation location of your own chrome)
  • Run the following command in your cmd:
  chrome --user-data-dir="C:\Users\[your_username]\[your_empty_directory]" --disable-web-security
  • Now, you can open your index.html file in the new browser to be able to test ajax

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published