GithubHelp home page GithubHelp logo

chantastic / esmodule-reference-course Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 98 KB

A short but thorough introduction to ES Modules

Home Page: https://www.lunch.dev

JavaScript 100.00%
esmodules javascript

esmodule-reference-course's Introduction

ES Modules for Lunch with @chantastic

This is the course material for ES Modules Reference on lunch.dev. Videos, ebook, and cheatsheet are accompaniments to this workshop are provided to members.

Description

ES Modules (JavaScript Modules, if you like) help structure, organize and isolate code.

This reference course focuses on the ES Modules features available in a Node.js environment. I've chosen Node.js because most JavaScript applications today (2021) go thru some form of bundling before being sent to the browser. The features we cover should be common to all Node.js bundling tools (Webpack, Rollup, esbuild), using the latest LTS Node.js environments (v14+).

Get started

  • Clone this repo to a local directory and enter the directory
    • cd into the new directory
  • run npm install to get the environment dependencies
  • run npm start to run the nodemon watch script. This re-runs index.js ever time a file in the project directory is saved

Project structure

README.md

You are here.

This is the file you're reading now. It includes setup and project navigation instrutions.

If you're watching this in workshop form, I'll lead you thru all the steps. If you're reading it, you can follow the EXERCISES.md linearly.

index.js

This is our main file.

As you follow along with the video exercises, you will edit this file directly and in tandem with assignment.mjs.

In comments, you will see imports for every available lesson. These comments can be uncommented to jump to a working state for each lesson.

They look like this:

// Lesson 5
// import { greet } from "./modules/05-import-from-module-export-list.mjs";

/modules/assignment.mjs

This file is empty. It's where you will put your code, as you navigate the course!

I recommend going thru all the excercises — whether with your hands, voice-to-text, or otherwise. Completing the examples yourself will hell you translate the patterns to your own apps.

/modules/exercises/

This directory includes completed modules for all lessons.

These are handy references for checking and debugging your soltions.

/modules/examples/

This directory includes additional examples of module techniques you mind find in applications.

Copyright

Copyright © 2021 Michael Chan

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

esmodule-reference-course's People

Contributors

chantastic avatar

Stargazers

MOISES SANABRIA avatar

Watchers

 avatar James Cloos avatar  avatar

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.