Skip to content

Instantly share code, notes, and snippets.

@SamanShafigh
Created November 1, 2018 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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