Skip to content
Code and exercises for TypeScript workshops.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gulp
src
.gitignore
LICENSE
README.md
bower.json
gulpfile.js
npm-shrinkwrap.json
package.json
tsconfig.json
typings.json

README.md

typescript-workshops

Code and exercises for TypeScript workshops 🎓

Workshops has been divided into few steps. Each of step presents some aspect of node.js + angularJS stack application written in TypeScript.

Both frameworks features and language features are presented - please read commit messages, everything should be stressed there 😏

Exercises

Aims of all exercises (keys are connected to keys in commit messages):

key | what | scope | check diff ------------ | ------------ | ------------- | ---------------- | ------------------------- E-1 | simple server in node.js |

  • run node server
  • serve static page
| show diff E-2 | simple API |
  • add express.js server
  • serve simple resource
| show diff E-3 | business logic |
  • service
  • repositories (little overkill)
  • interfaces
  • generic interfaces
| show diff E-4 | separate API controllers |
  • express.js router
  • separate controllers for resources
  • when to use functions instead of classes
| show diff E-5 | add rich client |
  • basic angular.js app in TypeScript
  • add gulp tasks for client-side
| show diff E-6 | get data from API in client |
  • angular controllers
  • angular service with $http
  • manipulate data
| show diff

State

  • E-1
  • E-2
  • E-3
  • E-4
  • E-5
  • E-6

How to run

Install environment and packages managers

Node.js

  • please install at least 4.x version, 5.x is recommended

All dependencies are managed by appropriate managers.

Following instruction shows how to install those package managers globally. If you want to use only local versions of managers - just point the local distribution in node_modules.

Install gulp: npm install gulp -g

Install bower: npm install bower -g

Install typings: npm install typings -g

Install project dependencies

Go to project root directory and run

npm install & bower install & typings install

or run those commands separate if you have any problems.

Run project

Go to project root directory and run

gulp serve

And the magic happens

There's watch included in this task so all your changes will automatically reflect in your running application.

The application runs by default on localhost:8000 - you can change it in app.ts file.

You can’t perform that action at this time.