Actualize readme's on Node version

- Actualize 'backend/.nvmrc' as well.
This commit is contained in:
Wolfgang Huß 2023-01-27 13:20:38 +01:00
parent e4c0e2a44c
commit aebaefb031
3 changed files with 32 additions and 7 deletions

View File

@ -1 +1 @@
v12.19.0 v19.4.0

View File

@ -19,12 +19,19 @@ Wait a little until your backend is up and running at [http://localhost:4000/](h
## Installation without Docker ## Installation without Docker
For the local installation you need a recent version of For the local installation you need a recent version of
[node](https://nodejs.org/en/) (>= `v10.12.0`). We are using [Node](https://nodejs.org/en/) (>= `v10.12.0`). We are using
`12.19.0` and therefore we recommend to use the same version `v19.4.0` and therefore we recommend to use the same version
([see](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues/4082) ([see](https://github.com/Ocelot-Social-Community/Ocelot-Social/issues/4082)
some known problems with more recent node versions). You can use the some known problems with more recent node versions). You can use the
[node version manager](https://github.com/nvm-sh/nvm) to switch [node version manager](https://github.com/nvm-sh/nvm) `nvm` to switch
between different local node versions. between different local Node versions:
```bash
# install Node
$ cd backend
$ nvm install v19.4.0
$ nvm use v19.4.0
```
Install node dependencies with [yarn](https://yarnpkg.com/en/): Install node dependencies with [yarn](https://yarnpkg.com/en/):
@ -32,6 +39,10 @@ Install node dependencies with [yarn](https://yarnpkg.com/en/):
# in main folder # in main folder
$ cd backend $ cd backend
$ yarn install $ yarn install
# or just
$ yarn
# or just later on to use version of ".nvmrc" file
$ nvm use && yarn
``` ```
Copy Environment Variables: Copy Environment Variables:

View File

@ -4,18 +4,32 @@
## Installation ## Installation
For preparation we need Node and recommend to use [node version manager](https://github.com/nvm-sh/nvm) `nvm` to switch
between different local Node versions:
```bash
# install Node
$ cd webapp
$ nvm install v16.19.0
$ nvm use v16.19.0
```
Install node dependencies with [yarn](https://yarnpkg.com/en/):
```bash ```bash
# install all dependencies # install all dependencies
$ cd webapp/ $ cd webapp
$ yarn install $ yarn install
# or just # or just
$ yarn $ yarn
# or just later on to use version of ".nvmrc" file
$ nvm use && yarn
``` ```
Copy: Copy:
```text ```text
# in webapp/ # in webapp
cp .env.template .env cp .env.template .env
``` ```