Vanillajs Hello

screenshot of Vanillajs Hello
bootstrap
scss

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.

Installation:

To install the template and start coding a JS/HTML/CSS website, follow these steps:

  1. Open the template in Codespaces or Gitpod.
  2. Install the packages by typing the following command in the command line:
    npm install
    
  3. Run the website to see live changes by typing the following command in the command line:
    npm run start
    
  4. Open your browser and type "localhost" to view the website.

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.

bootstrap
Bootstrap

Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

github-pages
GitHub Pages

Gridsome is a Vue.js-based static site generator that makes it easy to build fast and flexible websites and applications by leveraging modern web technologies like GraphQL, Webpack, and hot reloading

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.