|
|
@@ -4,12 +4,18 @@ This package is not published to npm. It is used in development of the Vendure s
|
|
|
|
|
|
### Running
|
|
|
|
|
|
-To run the server, run the `start` script. The database configuration can be specified by the `DB=<type>` environment variable:
|
|
|
+Ensure you have a database running. From the root directory, run:
|
|
|
|
|
|
```bash
|
|
|
-DB=mysql npm run start
|
|
|
-DB=postgres npm run start
|
|
|
-DB=sqlite npm run start
|
|
|
+docker-compose up -d mariadb
|
|
|
+```
|
|
|
+
|
|
|
+To run the server, run the `dev` script. The database configuration can be specified by the `DB=<type>` environment variable:
|
|
|
+
|
|
|
+```bash
|
|
|
+cd packages/dev-server
|
|
|
+
|
|
|
+[DB=mysql|postgres|sqlite] npm run dev
|
|
|
```
|
|
|
|
|
|
The default if no db is specified is mysql.
|
|
|
@@ -21,7 +27,7 @@ Test data can be populated by running the `populate` script. This uses the same
|
|
|
Specify the database as above to populate that database:
|
|
|
|
|
|
```bash
|
|
|
-DB=sqlite npm run populate
|
|
|
+[DB=mysql|postgres|sqlite] npm run populate
|
|
|
```
|
|
|
|
|
|
## Testing custom ui extension compilation
|
|
|
@@ -35,9 +41,6 @@ the [temporary admin ui `tsconfig.json`](./custom-admin-ui/tsconfig.json) file:
|
|
|
}
|
|
|
```
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
## Load testing
|
|
|
|
|
|
This package also contains scripts for load testing the Vendure server. The load testing infrastructure and scripts are located in the [`./load-testing`](./load-testing) directory.
|