A Router built with Vanilla Javascript....

Setup

  • Clone or Download the Project,
  • Ensure you are bashed on the currunt directory you cloned
  • Run npm install
  • Run npm start

Routing System

The routes are loaded in the app.js file and imported from their respective classes and files

It uses the javascript location.hash method

Example

http://localhost/Javascriptrouter/#/home

or

http://localhost:3000/#/home

the route must be placed after the hash (#) in order for the route to be loaded..