|
|
@@ -51,13 +51,7 @@ The root directory has a `package.json` which contains build-related dependencie
|
|
|
> Note:
|
|
|
> When you do `yarn` for the first time, you will need to manually create the `package` folder under [/packages/admin-ui](/packages/admin-ui).
|
|
|
|
|
|
-### 2. Bootstrap the packages
|
|
|
-
|
|
|
-`yarn bootstrap`
|
|
|
-
|
|
|
-This runs the Lerna "bootstrap" command, which cross-links monorepo dependencies.
|
|
|
-
|
|
|
-### 3. Build all packages
|
|
|
+### 2. Build all packages
|
|
|
|
|
|
`yarn build`
|
|
|
|
|
|
@@ -65,7 +59,7 @@ Packages must be built (i.e. TypeScript compiled, admin ui app built, certain as
|
|
|
|
|
|
Note that this can take a few minutes.
|
|
|
|
|
|
-### 4. Set up the server
|
|
|
+### 3. Set up the server
|
|
|
|
|
|
The server requires an SQL database to be available. The simplest option is to use SQLite, but if you have Docker available you can use the [dev-server docker-compose file](./packages/dev-server/docker-compose.yml) which will start up both MariaDB and Postgres as well as their GUI management tools.
|
|
|
|
|
|
@@ -80,7 +74,7 @@ Vendure uses [TypeORM](http://typeorm.io), and officially supports **MySQL**, **
|
|
|
```
|
|
|
If you do not specify the `DB` variable, it will default to "mysql".
|
|
|
|
|
|
-### 5. Run the dev server
|
|
|
+### 4. Run the dev server
|
|
|
|
|
|
```
|
|
|
cd packages/dev-server
|
|
|
@@ -133,8 +127,6 @@ DB=sqlite yarn start
|
|
|
|
|
|
3. The dev-server will now have your local changes from the changed package.
|
|
|
|
|
|
-:information_source: Lerna links to the `dist` folder of the packages, so you **don't** need to rerun 'yarn bootstrap'
|
|
|
-
|
|
|
### Code generation
|
|
|
|
|
|
[graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) is used to automatically create TypeScript interfaces for all GraphQL server operations and admin ui queries. These generated interfaces are used in both the admin ui and the server.
|