[go: up one dir, main page]

Skip to content

Web Learning Kit Generator is a tool designed for beginners who want to build static websites with minimal configuration.

Notifications You must be signed in to change notification settings

Errec/web-learning-kit-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Learning Kit Generator

Web Learning Kit Generator is a tool designed for beginners who want to build static websites with minimal configuration. The application creates a Gulp build process dynamically based on the user's choice of markup language (HTML/Pug), stylesheet language (SASS/SCSS), and scripting language (Javascript/Typescript). It's an easy and fast way to get started with a more realistic development environment on your local machine, beyond online IDEs. Logo

This project is based on a simple and fast workflow focused mainly on the front-end task. It gives a solid starting point for newcomers who wants a ready-to-deploy local environment setup. The sources used to build this project includes:

Features

  • Dynamic Configuration: Choose your preferred markup (Pug/HTML), stylesheet (Sass/SCSS/CSS), and script (JavaScript/TypeScript) languages, and the tool will generate a customized Gulpfile for you.

  • Beginner-Friendly: Ideal for those new to web development who want to experiment with real-world tools and workflows.

  • Extensible: Start simple, and gradually explore more advanced features as you become comfortable.

  • Minimal Setup: Get up and running quickly without the need for complex configuration.

  • Realistic Environment: Experience coding outside of online IDEs, and start using Git or other tools as you grow your skills.

  • Bonus: you can add Josh Comeau css reset and Necolas css normalize

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Node.js (v14 or later)
  • npm (comes with Node.js) or Yarn

Getting Started

1 - Clone or download this repository

2 - Install dependencies:

Using npm:

npm install

Or using Yarn:

yarn install

Usage

Development

To start the development server with live reloading:

yarn start

Or

npm start

This will run the gulp command, which starts a local server and watches for file changes.

Production Build

To create a production-ready build:

yarn build

Or

npm build

This will generate optimized files in the dist directory.

Running Your Local Server With Gulp

This task will open the browser window usually with the URL http://localhost:3000/. Any saved changes made to the project files, will reflect automatically over the browser.

Project Structure

.
├── src/                # ** Your code folder! **
│   ├── img/            # Image files
│   ├── js/             # JS/TS files
│   ├── styles/         # Sass/SCSS files
│   └── templates/      # Pug/HTML files
│   
├── _gulp/              # Gulp configuration and tasks
├── dist/               # Production build output
├── gulpfile.js         # Gulp entry point
├── package.json        # Project dependencies and scripts
└── README.md           # Project documentation

The src/ directory is created after the Yarn or npm install, this is where your code journey begins. The dist/ and build/ folders can be used to host your web project in a simple and convenient way. there are a lot of options to host it, including Github Pages

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.


For more detailed information about the gulp tasks and project configuration, please refer to the comments in the gulpfile.js and the files in the _gulp directory.