Vanillajs Hello

screenshot of Vanillajs Hello

Template to start a Vanilla.js web application using modern web stack: Vite, Bootstrap, HTML/CSS.

Overview:

This article provides a guide on how to start coding a JS/HTML/CSS website using a template. It explains the process of installing the necessary packages, running the website to see live changes, and where to write the code. It also includes troubleshooting tips and instructions on how to include more images and JS files in the project. Additionally, the article mentions that the template is compatible with GitHub pages hosting and provides a one-step process to publish the website. The template is credited to Alejandro Sanchez and contributors from 4Geeks Academy Coding Bootcamp.

Features:

  • Easy setup: The template allows users to start coding a JS/HTML/CSS website within 30 seconds by opening it in Codespaces or Gitpod.
  • Package installation: Users can install the necessary packages by typing "npm install" in the command line.
  • Live changes: The website automatically refreshes when any file within the ./src folder is changed, allowing users to see their changes in real time.
  • Code organization: The template provides separate files for JS, CSS, and HTML (./src/app.js, ./src/style.css, and ./src/index.html) and allows users to add additional .html files as needed. The JS workflow starts inside window.onload.
  • Troubleshooting tips: The article offers troubleshooting tips, including cache refresh instructions (command+shift+r on Mac, control+shift+r on PC & Linux).
  • Image and JS file inclusion: Users can add images to the ./src/assets/img folder and import them from their JS files. Additional JS files can be added to the src folder and imported into the app.js file.
  • GitHub Pages compatibility: The template is 100% compatible with free GitHub pages hosting, allowing users to easily publish their websites by pushing to the main branch.

Summary:

This article provides a guide on how to start coding a JS/HTML/CSS website using a template. It explains the process of installing the necessary packages and running the website to see live changes. The article also provides instructions on where to write the code, troubleshooting tips, and guidance on including more images and JS files in the project. Additionally, it mentions the compatibility of the template with GitHub pages hosting and provides a simple one-step process to publish the website. The template is credited to Alejandro Sanchez and contributors from 4Geeks Academy Coding Bootcamp.