index-dev.ts 701 B

1234567891011121314151617181920212223242526
  1. import { bootstrap } from './src';
  2. import { IntegerIdStrategy, StringIdStrategy } from './src/config/entity-id-strategy';
  3. /**
  4. * This bootstraps the dev server, used for testing Vendure during development.
  5. */
  6. bootstrap({
  7. port: 3000,
  8. cors: true,
  9. jwtSecret: 'some-secret',
  10. dbConnectionOptions: {
  11. type: 'mysql',
  12. entities: ['./src/**/entity/**/*.entity.ts'],
  13. synchronize: true,
  14. logging: true,
  15. host: '192.168.99.100',
  16. port: 3306,
  17. username: 'root',
  18. password: '',
  19. database: 'test',
  20. },
  21. // entityIdStrategy: new MadBastardIdStrategy(),
  22. }).catch(err => {
  23. // tslint:disable-next-line
  24. console.log(err);
  25. });