All Projects → blacksonic → Angular2 Babel Esnext Starter

blacksonic / Angular2 Babel Esnext Starter

Angular development and testing examples with Babel in Javascript (ES6/ES7).

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Angular2 Babel Esnext Starter

Server Side Rendering
Interactive guide to server-side rendering with Webpack, React, React Transmit, CSS modules and more
Stars: ✭ 352 (-29.18%)
Mutual labels:  webpack, babel
Backpack
🎒 Backpack is a minimalistic build system for Node.js projects.
Stars: ✭ 4,466 (+798.59%)
Mutual labels:  webpack, babel
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (-28.97%)
Mutual labels:  webpack, babel
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+3668.01%)
Mutual labels:  webpack, babel
React
React+webpack+redux+ant design+axios+less全家桶后台管理框架
Stars: ✭ 4,414 (+788.13%)
Mutual labels:  webpack, babel
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (-31.79%)
Mutual labels:  webpack, babel
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (-26.16%)
Mutual labels:  webpack, babel
Seek Style Guide
Living style guide for SEEK, powered by React, webpack, CSS Modules and Less.
Stars: ✭ 302 (-39.24%)
Mutual labels:  webpack, babel
Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (-18.71%)
Mutual labels:  webpack, babel
Sku
Front-end development toolkit
Stars: ✭ 403 (-18.91%)
Mutual labels:  webpack, babel
Instapy Gui
gui for instapy automation
Stars: ✭ 313 (-37.02%)
Mutual labels:  webpack, babel
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (-7.65%)
Mutual labels:  webpack, babel
Wp Webpack Script
💥🔥📦👩‍💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
Stars: ✭ 314 (-36.82%)
Mutual labels:  webpack, babel
Woo Next
🚀 React WooCommerce theme, built with Next JS, Webpack, Babel, Node, Express, using GraphQL and Apollo Client
Stars: ✭ 342 (-31.19%)
Mutual labels:  webpack, babel
Support
JS.coach is a manually curated list of packages related to React, Webpack, Babel and PostCSS
Stars: ✭ 305 (-38.63%)
Mutual labels:  webpack, babel
Js Library Boilerplate Basic
Javascript Minimal Starter Boilerplate - Webpack 5 🚀, Babel 7, UMD, Unit Testing
Stars: ✭ 354 (-28.77%)
Mutual labels:  webpack, babel
Generator Webappstarter
Quick start a web app for mobile.Automatically adjusts according to a device’s screen size without any extra work.
Stars: ✭ 298 (-40.04%)
Mutual labels:  webpack, babel
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-40.04%)
Mutual labels:  webpack, babel
Webbf
Java Web工程demo 后端:spring + spring mvc + mybatis + maven,涉及定时任务quartz、ehcache缓存、RESTful API、邮件发送... 前端:react + reflux + webpack,涉及ES6、jquery、react-router、ant design等内容, 提供下思路,仅供参考。
Stars: ✭ 367 (-26.16%)
Mutual labels:  webpack, babel
React Starter Kit
React Starter Kit — front-end starter kit using React, Relay, GraphQL, and JAM stack architecture
Stars: ✭ 21,060 (+4137.42%)
Mutual labels:  webpack, babel

Angular Babel ESNext Starter

Dependency Status devDependency Status Build Status

This repository shows development and testing techniques with Angular. The application is written in modern Javascript without Typescript. It can be ideal for those who are new to Angular and want to learn how things work and fiddle with Typescript later.

It is a basic CRUD application with authentication, similar to the news site jslive.com. You can see the list of links, add and edit them after you signed in.

If you're looking for Angular in Javascript without Gulp tasks and server side check out angular2-esnext-todomvc

If you're looking for Angular in Typescript check out angular2-webpack-starter

  • Modern Javascript implementation with classes, decorators.
  • Uses Babel to support decorators.
  • Same language constructs can be used as in Typescript (types will be stripped).
  • Bundles files with Webpack.
  • Automates tasks with Gulp.
  • Automatically rebundles and refreshes the browser on changes.
  • Unit testing with Karma and Jasmine.
  • Code coverage for original ES6 code.
  • Includes deployment to Heroku.
  • Linting with ESlint based on Airbnb's styleguide.
  • Layout and namings based on the official Angular 2 style guide

Concepts covered

  • Creating components with directives
  • Communication between child and parent components
  • Dependency injection for services
  • Change detection strategies
  • Using custom pipes in templates
  • Handling HTTP calls
  • Using observables
  • Routing
  • Authentication and restricting access to routes
  • Form handling
  • Using custom validators in forms
  • Internationalization with ngx-translate

Quick Start

git clone https://github.com/blacksonic/angular2-babel-esnext-starter.git
cd angular2-babel-esnext-starter
npm install

gulp serve

It bundles the application, copies the static files and starts the webserver with Nodemon. The transpiled application will have two separate ES5 compatible files: vendor.js for vendor libraries, boot.js for application logic. Server side changes restart the server, client side changes rebundle the Angular application and refresh the page with Livereload.

Note: The application needs at least Node 6+ installed.

Open it in your browser http://localhost:9000 and start coding your first Angular application in Javascript!

Testing

gulp test

Runs tests with Karma and Jasmine. Uses a single entry point (setup.spec.js), which includes all the *.spec.js files and runs the tests inside them. The test files can be found in the client/app folder next to the source files.

Because a clean bundling with Webpack can take multiple seconds, it is not ideal for development to run a clean test run every time. Instead it can run continuously on your development machine.

gulp test-dev

To get a good overview of testing possibilities within Angular read this article.

Workarounds

No more is needed, code can be written as in Typescript!

Read about the details how it is implemented in this article.

Authentication

It is implemented with the router's built-in lifecycle events. For a detailed explanation read this article.

Deployment (to Heroku)

It bundles the client application and copies static files and server files to the dist directory along with package.json. Then it can be commited to the desired location (for example Heroku).

gulp dist

cd dist
git init
git add -A .
git commit -m "Deploy #1" && echo Committed
git push -f [email protected]:angular2-es6-starter.git master

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].