• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Modular, easy to use boilerplate for building web applications. Official Repository

Front-end Boilerplate.

Because repeating yourself is suck. Build Status devDependency Status Dependency Status

Alt text

Modular, easy to use boilerplate for building web applications

Introduction

Frontend Boilerplate is a simple Gruntfile and directory structure for an easy starting point with web applications using: Grunt and Bower. It is designed to give you a quick and organized way to start developing web apps with best practices in mind.

Preface

As a developer, everytime you need to start a new web project you must follow the same steps. Write a lot of JavaScript code, using a CSS pre-processor, start a server, open your browser to see the page, go back to the editor made some changes, go back to the browser e repeat this flow many, many times a day. For this we created this repository to collect the best practice around the web community and put all together in one place. Be cool, share your experience too.

Disclaimer

All code here are based on lessons learned and good practices, however many of them are fruits of research in several blog, tutorials, lectures and other sources.

License

MIT


Getting Started

To get you started you can simply clone or download the repository and install the dependencies, very simple! Quick start.

Also you can using the Yeoman Generator to start even fast.

Prerequisites

You need Git to clone the repository.

Also you must have Node.js and its package manager (npm) installed.

And Bower the package manager

Installing frontendboilerplate

Clone the repository using git:

git clone https://github.com/newaeonweb/frontendboilerplate.git
cd frontendboilerplate

If you just want to start from zero commit history, you need to do:

git clone --depth=1 https://github.com/newaeonweb/frontendboilerplate.git <your-project-name>

The depth=1 tells git to only pull down one commit worth of historical data.

Install Dependencies

Open your Terminal window inside the project folder and type the following command:

npm install

The npm command will install all the dependencies listed on package.json file.

Your application is ready to go

Troubleshooting

The step-by-step is very simple but if you find some issue please let us know at: issues.


Application Directory Layout

We propose a folder structure for web projects from the scratch, because all web projects have CSS, JS and Images folders.

	assets/					--> all of the files to be used in production
		css					--> css files
		fonts				--> Font-face folder
		images				--> image files
		js/					--> javascript files
			vendor 			--> third party libraries copied from src/vendor
	lib/					--> 3rd party bower libraries
	src/					--> scripts for development
		scripts/			--> hand made JavaScript files, plugins and others
		preprocessor/		--> your choice for Sass or Less
		vendor/				--> third party libraries like: respond, mçodernizer
	test					--> test source files and libraries
		mocha				--> mocha folder structure for visual test results
			css/			
				mocha.css
			js/				--> testing frameworks file
				chai.js
				mocha.js
		spec				--> specs for testing
			app-test.js		--> example on how to write tests
		test.html			--> visual page for tests
	index.html				--> base layout file
	Gruntfile.js			--> where the magic happens

Grunt commands available

Development:

grunt dev

This command will run two tasks:

  • connect
  • watch

Using the concurrent and livereload plugins.

Linters:

grunt lint

This command will run two tasks:

  • jshint
  • csshint

CSS:

grunt less
grunt sass

Using less task will compile less files, using sass task will compile sass files.

Test:

grunt test

This command will run one task:

  • mocha

Build:

grunt build

This command will run four tasks:

  • lint
  • concat
  • uglify
  • test

Helpers Tasks

Bower:

grunt bower

Grunt will install all bower dependencies from the bower.json file.

Injector:

grunt injector

Grunt will inject all bower dependencies from the bower.json file into index.html.

After include some bower denpendecy on bower.json file, optionally run grunt bower and grunt injector.

More Repositories

1

responsiveboilerplate

A lightweight (2kb) micro-library, elegant & minimalistic CSS3 grid system, made with only three main classes and 12 columns. It`s very easy to use and understand, pre-packed with some extra css helpers for mobile devices.
CSS
245
star
2

ResponsiveAeon-Cssgrid

Lightweight Responsive CSS Grid System, build to be Simple Fast and Intuitive, only 1kb minified.
CSS
116
star
3

generator-angm

AngularJS Yeoman Generator to help you getting started with a new project based on AngularJS and Angular Material to build large scale applications.
JavaScript
73
star
4

nodejs-6-blueprints

Node.JS 6 Blueprints Book
CSS
55
star
5

Hands-On-Full-Stack-Web-Development-with-Angular-6-and-Laravel-5

Become fluent in both frontend and backend web development with Docker, Angular and Laravel - Official Book Repository
PHP
16
star
6

angular-laravel-docker-starter

Laravel-Docker-Angular starter-kit
PHP
12
star
7

conference-api

Sample Conference API
JavaScript
8
star
8

sasa-jekyll-theme

A simple jekyll theme
CSS
6
star
9

docker-laravel-setup

Baseline code for Laravel tutorial with Docker, Ngnix, MySql.
Dockerfile
5
star
10

generator-frontendboilerplate

Yeoman Frontend Boilerplate Generator
JavaScript
5
star
11

ResponsiveBoilerplateSnippets

A set of sublime text2 snippets for make your life easy when use Responsive Boilerplate framework
4
star
12

f7mobileboilerplate

Mobile application Boilerplate with Framework7 and Cordova
HTML
3
star
13

Rb-ui

Interface components to use with Responsive Boilerplate Framework.
JavaScript
3
star
14

express-api-boilerplate

Node.js, Express API and MongoDB
JavaScript
2
star
15

responsiveAeonNav

jQuery Plugin for responsive nav
JavaScript
2
star
16

kendoui-amd

Kendoui Single Page Web Application modular with AMD
JavaScript
1
star
17

dependency.js

Small lib to load external files: CSS and JavaScript async & sync.
1
star
18

angular-monorepo-boilerplate

Example project using monorepo approach including; NGRX@Store, JWT authentication and extra stuff.
TypeScript
1
star
19

sasa

Modular SCSS components
CSS
1
star
20

palindrome

JavaScript
1
star
21

conference-app

Sample
JavaScript
1
star
22

ngonsenmobileboilerplate

Simple Onsen UI + AngularJS scaffold for mobile applications with Apache Cordova
JavaScript
1
star
23

enterpriseAppBoilerplate

Baseline Angular project built with workspace concept to start an enterprise Angular applications with a solid structure.
HTML
1
star
24

gridsome-blog-example

Simple Gridsome blog example using external API.
JavaScript
1
star