2022-02-09 00:06:33 +01:00
|
|
|
# Freeplanet_serverside
|
|
|
|
|
|
2022-02-21 13:12:27 +01:00
|
|
|
- Node JS (ver. 16.14.0 or up)
|
2022-02-09 00:06:33 +01:00
|
|
|
|
|
|
|
|
## Install the dependencies
|
|
|
|
|
```bash
|
|
|
|
|
yarn
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Start the app in development mode (hot-code reloading, error reporting, etc.)
|
|
|
|
|
```bash
|
|
|
|
|
node src/server/server.js
|
|
|
|
|
```
|
|
|
|
|
|
2022-02-21 13:12:27 +01:00
|
|
|
### Creating the ambient test
|
|
|
|
|
|
|
|
|
|
Create your .env.test file copying from .env.development
|
|
|
|
|
```bash
|
|
|
|
|
cp .env.development .env.test
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
And modifying the file with your configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Build the ambient test
|
|
|
|
|
|
2022-02-09 00:06:33 +01:00
|
|
|
```bash
|
|
|
|
|
./deploynodejs_on_test.js
|
|
|
|
|
```
|
|
|
|
|
|
2022-02-21 13:12:27 +01:00
|
|
|
### Creating the ambient Production
|
|
|
|
|
|
|
|
|
|
Create your .env.production file copying from .env.development
|
|
|
|
|
```bash
|
|
|
|
|
cp .env.development .env.production
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
And modifying the file with your configuration
|
|
|
|
|
|
2022-02-09 00:06:33 +01:00
|
|
|
### Build the production
|
|
|
|
|
```bash
|
|
|
|
|
./deploynodejs_on_production.js
|
|
|
|
|
```
|
|
|
|
|
|