readme tips: change recommended way to start only couchdb and elasticsearch

This commit is contained in:
maxlath
2023-04-29 14:01:38 +02:00
parent 00532a5d57
commit 0f189a7498

View File

@@ -170,18 +170,19 @@ module.exports = {
### Run inventaire server and client outside of Docker
It can sometimes be more convenient to keep CouchDB and Elasticsearch in Docker, but to run the Inventaire server and client outside. For this you will need to:
- comment-out the `inventaire` block in `docker-compose.yml`
- have [NodeJS](https://nodejs.org/) >= v16 installed on your machine, which should make both `node` and `npm` executables accessible in your terminal
Then you can start CouchDB and Elasticsearch in the background
```sh
docker-compose up -d
docker-compose up couchdb elasticsearch -d
```
Start the Inventaire server in development mode
```sh
cd inventaire
npm run watch
```
And in another terminal, start the client Webpack dev server
```sh
cd inventaire/client