Skip to content

Instantly share code, notes, and snippets.

@SamanShafigh
Created November 1, 2018 03:54
Show Gist options
  • Save SamanShafigh/a3811d383106f879ec41dd7fffcffbc7 to your computer and use it in GitHub Desktop.
Save SamanShafigh/a3811d383106f879ec41dd7fffcffbc7 to your computer and use it in GitHub Desktop.
import Kernel from './kernel';
import * as ServiceBuilder from './service';
(async () => {
const kernel = new Kernel(ServiceBuilder);
await kernel.boot();
await kernel.container.get('db').save('product', {}, {id: 1, name: 'ssssscar'});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment