All Projects → benabraham → Bs4 Nodejs Static

benabraham / Bs4 Nodejs Static

Licence: mit
A basic template to develop a website based on Bootstrap 4

Projects that are alternatives of or similar to Bs4 Nodejs Static

Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (+505.88%)
Mutual labels:  boilerplate, scss, bootstrap4
Sing App
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
Stars: ✭ 1,187 (+6882.35%)
Mutual labels:  boilerplate, scss, bootstrap4
Coreui Free React Admin Template
CoreUI React is a free React admin template based on Bootstrap 5
Stars: ✭ 3,573 (+20917.65%)
Mutual labels:  scss, bootstrap4
Coreui
Open Source UI Kit built on top of Bootstrap 4 and plain JavaScript without any additional libraries like jQuery
Stars: ✭ 361 (+2023.53%)
Mutual labels:  scss, bootstrap4
Vue Bootstrap With Material Design
Vue Bootstrap with Material Design - Powerful and free UI KIT
Stars: ✭ 803 (+4623.53%)
Mutual labels:  scss, bootstrap4
Modular Admin Html
ModularAdmin - Free Dashboard Theme Built On Bootstrap 4 | HTML Version
Stars: ✭ 2,875 (+16811.76%)
Mutual labels:  boilerplate, bootstrap4
Frontend Boilerplates
Collection of Boilerplates with ES6, Vue, React, Nuxt, TypeScript, SCSS, Nodejs. Using good practices and file structures to inspire your real projects.
Stars: ✭ 269 (+1482.35%)
Mutual labels:  boilerplate, scss
Motherplate
A bare bones responsive SCSS boilerplate for web designers
Stars: ✭ 392 (+2205.88%)
Mutual labels:  boilerplate, scss
Yii2 Angular Boilerplate
Yii2 REST API + Angular10 Boilerplate (Frontend/Backend)
Stars: ✭ 194 (+1041.18%)
Mutual labels:  boilerplate, bootstrap4
Honoka
Honoka is one of the original Bootstrap theme.
Stars: ✭ 634 (+3629.41%)
Mutual labels:  scss, bootstrap4
Theme Machine
A collection of stylized Bootstrap Themes
Stars: ✭ 585 (+3341.18%)
Mutual labels:  scss, bootstrap4
Boilerform
Boilerform is a little HTML and CSS boilerplate to take the pain away from working with forms.
Stars: ✭ 679 (+3894.12%)
Mutual labels:  boilerplate, scss
Coreui Free Vue Admin Template
Open source admin template based on Bootstrap 5 and Vue 3
Stars: ✭ 2,951 (+17258.82%)
Mutual labels:  scss, bootstrap4
React Starter Kit
React, Redux, Webpack, Material UI, Boostrap 4, Code Splitting, HMR
Stars: ✭ 229 (+1247.06%)
Mutual labels:  boilerplate, bootstrap4
Select2 Bootstrap4 Theme
Select2 v4 theme for Bootstrap4
Stars: ✭ 305 (+1694.12%)
Mutual labels:  scss, bootstrap4
Static Html Webpack Boilerplate
🔮 modern tooling for old-school static webpage development
Stars: ✭ 226 (+1229.41%)
Mutual labels:  boilerplate, scss
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (+2058.82%)
Mutual labels:  boilerplate, scss
Sassy Starter
🎉 Sassy starter - HTML / SCSS (SMACSS)
Stars: ✭ 740 (+4252.94%)
Mutual labels:  boilerplate, scss
Laravel Scaffold
The base for developing awesome projects
Stars: ✭ 142 (+735.29%)
Mutual labels:  boilerplate, bootstrap4
Skeleton Sass
Skeleton Sass is a highly modular version of Skeleton CSS
Stars: ✭ 151 (+788.24%)
Mutual labels:  boilerplate, scss

A basic template to develop a website based on Bootstrap 4

Includes:

  • Bootstrap 4: build responsive, mobile-first projects on the web with the world's most popular front-end component library
  • Gulp 4: task runner for running all of the following
  • Sass compilation: leverage the power of the most popular CSS extension language
  • Sourcemaps generation for easier Sass debugging
  • Browsersync: automatically reloads (or injects in case of CSS), browsers' when you change files
  • Autoprefixer: parses CSS and adds vendor prefixes according to caniuse.com
  • UnCSS: removes unused styles from CSS
  • Flexbugs fixes: automatically fixes some of the flexbugs
  • CSSO: CSS minifier with structural optimizations
  • Twig.js: JavaScript implementation of the Twig PHP templating language
  • Surge.sh: deploy static websites easily and for free

First time installation

Install latest node.js

Install all packages from package.json locally

npm install

If you’re having errors with node-gyp, try installing it globally.

Development

To develop with automatic compilation and browser refreshing run

npm start

And see the result on http://localhost:3000/

Build

To build everything once for production deploy (in /dist/ folder)

This build uses all generated HTML files for UnCSS. If it removes something you need to keep, add and array to ignore option in gulpfile.esm.js.

npm run build

CSS (Sass preprocessor)

index.css is compiled from src/scss/index.scss by Sass.

You don't know Scss syntax or don't want to use it? Just use plain CSS in src/scss/_base.scss.

HTML (Twig templates)

HTML is generated from Twig.js templates (JavaScript impementation of Twig templating language) in src/templates.

You don't need to leverage the power of templates. You can just create plain HTML files with *.twig extension.

If you don't want a template to be turned into HTML file start it with _. Typically these are templates used for include or extend.

Documentation for Twig.

Warning: Twig.js doesn't implement 100% of Twig.

If you need some data to be available in all templates, use templates/data.json for that.

Static files (JavaScript, images, …)

Folders and files from /src/static/ are simply copied directly to /dist/ folder.

Bootstrap

You can comment out Bootstrap components you don't need in /src/index.scss.

/src/_custom-bootstrap-variables.scss contains only customized Bootstrap variables.

See browserslist in package.json for supported browsers.

Deployment

Upload everything in /dist/ folder to the server.

Surge.sh

You can use surge.sh free service for that.

  1. If you don’t have a surge account: run surge client with npx surge in /dist folder to create it.
  2. Set your own domain in package.json (just replace https://my-first-website.surge.sh with yours).
  3. From now on run npm run deploy whenever you want to publish a new version.

If you want multiple people to be able to deploy to the same domain, run surge --add [email protected] for each.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].