Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.24 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.24 KB

TypeScript30

This is an exercise of transforming Wes Bos's the absolutely amazing JavaScript 30 Day Challenge coded solutions from JavaScript to TypeScript.

You can view the original JavaScript solutions here and grab the course for free from here.

Installing this thing

Because it's in TypeScript, we need to compile to JavaScript before running it in the browser. The instructions below will help you get started with compiling TS to JS, watching the files for changes and spinning up a local web server as well.

  1. Clone the repo git clone and cd into it.
  2. Install dependencies yarn or npm install.
  3. In one terminal window, run yarn server. This will spin up the local server using serve. The URL is automatically copied to your clipboard, so just open your browser and paste it in the address bar. Go to the dist folder.
  4. In another terminal window, run yarn watch. This will compile the TS from src into dist and watch the files for changes.

Happy coding!