readme.hbs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # {{ name }}
  2. This project was generated with [`@vendure/create`](https://github.com/vendure-ecommerce/vendure/tree/master/packages/create).
  3. ## Directory structure
  4. * `/src` contains the source code of your Vendure server. All your custom code and plugins should reside here.
  5. * `/static` contains static (non-code) files such as assets (e.g. uploaded images) and email templates.
  6. ## Development
  7. ```
  8. yarn start
  9. # or
  10. npm run start
  11. ```
  12. will start the Vendure server and [worker](https://www.vendure.io/docs/developer-guide/vendure-worker/) processes from
  13. the `src` directory.
  14. {{#if isTs}}## Build
  15. ```
  16. yarn build
  17. # or
  18. npm run build
  19. ```
  20. will compile the TypeScript sources into the `/dist` directory.{{/if}}
  21. ## Migrations
  22. [Migrations](https://www.vendure.io/docs/developer-guide/migrations/) allow safe updates to the database schema.
  23. The following npm scripts can be used to generate migrations:
  24. ```
  25. yarn migration:generate [name]
  26. # or
  27. npm run migration:generate [name]
  28. ```
  29. run any pending migrations that have been generated:
  30. ```
  31. yarn migration:run
  32. # or
  33. npm run migration:run
  34. ```
  35. and revert the most recently-applied migration:
  36. ```
  37. yarn migration:revert
  38. # or
  39. npm run migration:revert
  40. ```