diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..bee4462 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,5 @@ +tasks: +- on: init + command: npm install && npx gulp && node dist/main.js +- on: restart + command: node dist/main.js \ No newline at end of file diff --git a/README.md b/README.md index 01037c6..34c8df6 100644 --- a/README.md +++ b/README.md @@ -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` @@ -32,7 +32,11 @@ container.bind(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