Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tasks:
- on: init
command: npm install && npx gulp && node dist/main.js
- on: restart
command: node dist/main.js
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

A basic example that showcases how to setup InversifyJS

This is a very basic InversifyJS example.
This is a very basic InversifyJS example.

This program declares:
This program declares:
- Three interfaces `Warrior`, `Weapon` and `Battle`.
- Two implementations of `Weapon`: `Katana` and `Shuriken`
- Two implementations of `Warrior`: `Ninja` and `Samurai`
Expand All @@ -32,7 +32,11 @@ container.bind<Battle>(SERVICE_IDENTIFIER.BATTLE).to(EpicBattle);
```

# How can I run it?
You can clone it using:
You can either

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/inversify/inversify-basic-example/blob/master/src/config/ioc_config.ts)

or clone it using:

```
$ git clone https://github.com/inversify/inversify-basic-example.git
Expand Down