GithubHelp home page GithubHelp logo

acbrandao / html Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 397 KB

My HTML5 templates starting point , Boot Strap, VUe JS, so anytime I want to start some new code I just go here

HTML 46.07% JavaScript 40.37% PHP 13.56%

html's Introduction

Starter Templates

This folder has an assorted collection of starter HTML/JS and other pages (mostly web pages or node javascript pages). This is my go to place when I'm starting a new project or new application from scratch, there's plenty of these located on the web, but this is just my nice little location for all the web pages that I'm interested in.

Installation

Simlply clone this folder, or click on the file you're interested in and just copy it to your working direcotry.

git clone [email protected]:acbrandao/templates.git

Usage

As described above clone the this repositry first into the folder you are working in.

This create a templates folder in the same directory where you issues the git clone. Next just copy the individual template(s) you need to from the /templates folder into the folder you want to use like:

cp templates/index.html .

or maybe you want to start a basic a VUE page named vue.php

cp templates/vuejs.html vue.php

or a reload script as idnex.html

cp templates/vuereload.html index.html

Using hotreload.js and hotreload.php

This scripts are useful as development aids. be sure to copy them both from the templates folder into the folder where you want them to be used. This is required as the hotreload.php works in the current folder.

cp templates/hotreload.* .

Then just include the hotreload js in the section of your web paage like

<head>
<script src="hotreload.js"></script>
</head>

Now you have the index.html ready to go , repeat as needed for each template. Using this technique keeps the original templates unchanged and allows you to re-use them as often as needed.

Description of each

Directroy Description Dependencies
index.html A plain HTML5 document HTML
vuejs A plain VUE JS startign page document HTML5, VUeJS (via CDN)
bootstrap A plain Bootstrap 4 starter page document HTML5, Bootstrap 4 (via CDN)
jquery A plain Jquery 3 starter page document HTML5, Jquery 3 (via CDN)
nodejs_http2 A plain http-server in node, server most text/plain html page documents nodejs, JS )

hotrealod.js and hotrealod.php are helper scripts when developing applications where the UI is changing quickly, and as a developer aid to more quickly show pages.

VS Code use Emmet templates and snippets (Visual Studio Code)

if you are using Visual Studio (VS Code) code editor https://code.visualstudio.com/ , you may not need many of these templates as they are built-in to VS Code using something they termed Emmet (https://code.visualstudio.com/docs/editor/emmet) which is a syntax expansion capability built in for most populat languages.

Using something like this, just start a new file save it as filename.html then using then just tye html:5 for example and it will expand the code to :

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body></body>
</html>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

This code is licensed under the MIT license. See https://opensource.org/licenses/MIT for details.

html's People

Contributors

acbrandao avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

seamusobrien

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.