Coder Social home page Coder Social logo

introtypescript's Introduction

IntroTypeScript

Lesson scaffolding to help me teach my housemates TypeScript


Learn how to write a command line utility of your own in pure modern TypeScript.

Lez write some code!

Open the following documentation pages in tabs in your browser:


What you should already have:

Setup:

# clone this repo:
git clone https://github.com/jesssullivan/IntroTypeScript && cd IntroTypeScript

# install typescript, node & eslint parser:
npm install 

## Setup your TS linter (only if you want to set up eslint yourself)
# npm init @eslint/config 

# Lint your TS:
npx eslint src/playground.ts

# Transpile some TS:
npm run-script tsc src/playground.ts

# Run your program:
node pub/playground.js 

To start, lets write a program that:

  • prompts the user to type "Hello World"
    • print some info about the response;
      • what is the type of user data we can use?
      • did the user type Hello World?
      • how many characters were typed?
      • how many more characters are needed to reach the number 42?

Lesson artefacts to add later:

  • Working with Webpack: bundling & tree shaking algorithms
  • Build a useful application for the browser: write some programmatic css, understanding the DOM, preform API calls from a client
  • Build a Chrome plugin
  • Build a file conversion tool with both a CLI and a neat browser user interface
  • Build a useful Flask + TypeScript application for mobile phones

introtypescript's People

Contributors

jesssullivan avatar

Watchers

James Cloos avatar  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.