https://github.com/abhisekp/practice-modern-javascript
:gem: :ribbon: A boilerplate to setup and Practice Modern JavaScript
https://github.com/abhisekp/practice-modern-javascript
babel boilerplate javascript modern nodejs practice
Last synced: 3 months ago
JSON representation
:gem: :ribbon: A boilerplate to setup and Practice Modern JavaScript
- Host: GitHub
- URL: https://github.com/abhisekp/practice-modern-javascript
- Owner: abhisekp
- License: mit
- Created: 2016-05-01T06:24:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T10:36:52.000Z (10 months ago)
- Last Synced: 2025-04-12T10:00:06.249Z (3 months ago)
- Topics: babel, boilerplate, javascript, modern, nodejs, practice
- Language: JavaScript
- Homepage: https://github.com/abhisekp/Practice-Modern-JavaScript#app-top
- Size: 985 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 304
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Practice Modern JavaScript [](LICENSE) [](https://twitter.com/intent/retweet?tweet_id=726917916843601920&related=abhisek%3ACreator,babeljs%3ATranspiler) [](https://www.codetriage.com/abhisekp/practice-modern-javascript)
A boilerplate to setup and practice Modern JavaScript[](#app-top)
[](https://github.com/abhisekp/Practice-Modern-JavaScript/graphs/contributors) [](LICENSE)
[](https://github.com/abhisekp/Practice-Modern-JavaScript/archive/master.zip)
[](https://twitter.com/intent/retweet?tweet_id=726917916843601920&related=abhisek%3ACreator,babeljs%3ATranspiler)[](https://gitter.im/abhisekp/ComputerEnthusiasts)
## Table of Contents
- [Requirements](#req)
- [Installation Instructions](#install)
- [Nodemon](#nodemon)
- [Dependencies](#dependencies)
- [How to Use](#usage)
- [Watch](#watch)
- [Write](#write)
- [Output](#output)
- [Examples](#examples)
- [Example 1](#example-1)
- [Example 2](#example-2)
- [Technologies Used](#techs)
- [Help & Support](#help)
- [Contributors](#contrib)
- [License](#license)
- [Contact](#contact)## Requirements â®
- Latest [**NodeJS**](http://nodejs.org) (>= v6)
## Installation â®
[1.](#nodemon) **Install `nodemon`** globally for watching for file changes while running the code :beginner: :package:
```sh
$ npm install -g nodemon # npm i -g nodemon
```[2.](#dependencies) **Install all dependencies** :beginner: :package:
```sh
$ yarn install
```## Usage â®
[1.](#watch) **Start watching** for file changes :eyes:
```sh
$ yarn run watch # yarn start
```[2.](#write) **Start writing** modern JavaScript in **`src/index.js`** file :memo:
```js
// my-module.js
export const name = 'My Module'
``````js
// index.js
import * as myModule from './my-module'console.log(myModule.name) // 'My Module'
```[3.](#output) **Enjoy** the output :joy:
```sh
$ yarn start
My Module
```[1.](#example-1) **Example 1** â®
```js
// async-await.js
const prom = new Promise(resolve => {
resolve(`Hello`)
})const longRun = async () => {
const res = await prom
console.log(res)
}longRun()
```[2.](#example-2) **Example 2** â®
```js
// array-includes.js
const includes3 = [1, 3, 4].includes(3)
console.log(includes3)
```## Technologies Used â®
- [**Babel**](http://babeljs.io) — Transpiles modern JS to compatible and runnable JS
- [**babel-preset-modern-node**](https://github.com/michaelcontento/babel-preset-modern-node) — A preset for Babel with required plugins## Help & Support â®
- [**BabelJS**](https://babeljs.slack.com) — BabelJS Slack Chat Room
- [**FreeCodeCamp/FreeCodeCamp**](https://gitter.im/FreeCodeCamp/FreeCodeCamp) — FreeCodeCamp Gitter Chat Room
- [**nodejs/node**](https://gitter.im/nodejs/node) — NodeJS Gitter Chat Room## Contributors â®
| [
Abhisek Pattnaik](http://about.me/abhisekp)
[💻](https://github.com/abhisekp/Practice-Modern-JavaScript/commits?author=abhisekp) 🎨 [📖](https://github.com/abhisekp/Practice-Modern-JavaScript/commits?author=abhisekp) 💡 |
| :---: |This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors#emoji-key) specification.
> **All types of Contributions are Welcome** :pray:
## License â®
[**MIT**](LICENSE) © [**Abhisek Patnaik**](https://github.com/abhisekp)
Tweet@abhisek
Know about/abhisekp
Chat with@abhisekp
> ----