Init
This commit is contained in:
32
backend/doc/camunda.md
Normal file
32
backend/doc/camunda.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# camunda platform
|
||||
|
||||
## configuration
|
||||
|
||||
github: https://github.com/camunda/camunda-platform
|
||||
vps: **/home/devops/lvluu/camunda-platform/docker-compose/camunda-8.6**
|
||||
|
||||
## start all services
|
||||
|
||||
please note that you HAVE to cd to `/home/devops/lvluu/camunda-platform/docker-compose/camunda-8.6` before executing any command with docker compose:
|
||||
|
||||
```bash
|
||||
docker compose --profile full up -d
|
||||
```
|
||||
|
||||
## stop all services
|
||||
|
||||
```bash
|
||||
docker compose --profile full down -d
|
||||
```
|
||||
|
||||
## restart a container
|
||||
|
||||
you can press tab to auto suggest the [service_name]
|
||||
|
||||
```bash
|
||||
docker compose --profile full restart [service_name]
|
||||
```
|
||||
|
||||
## change version of a service
|
||||
|
||||
edit the `/home/devops/lvluu/camunda-platform/docker-compose/camunda-8.6/.env`
|
||||
11
backend/doc/commands.md
Normal file
11
backend/doc/commands.md
Normal file
@@ -0,0 +1,11 @@
|
||||
### Create migration
|
||||
|
||||
```bash
|
||||
yarn typeorm:create-migration AddAccount
|
||||
```
|
||||
|
||||
### Run migrations
|
||||
|
||||
```bash
|
||||
yarn typeorm:run-migrations
|
||||
```
|
||||
56
backend/doc/setup-local.md
Normal file
56
backend/doc/setup-local.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Setup local development environment
|
||||
|
||||
## Start docker services
|
||||
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Setup database
|
||||
|
||||
- Add new postgres connection in PHP Storm
|
||||
|
||||
If you have different psql version on your host, you can manually restore dump inside container:
|
||||
- Put dump to `./dumps` directory
|
||||
- Connect to postgres container
|
||||
- Restore database: `psql -h localhost --set ON_ERROR_STOP=on -U root -d rifeberry -1 -f /dumps/rifeberry.sql`
|
||||
|
||||
## Connect to node service and run other commands inside container
|
||||
|
||||
```
|
||||
docker exec -it nest-backend_node_1 sh
|
||||
```
|
||||
|
||||
### Install packages
|
||||
|
||||
```
|
||||
yarn
|
||||
```
|
||||
|
||||
### Generate JWT keys if not exists
|
||||
|
||||
```
|
||||
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
|
||||
```
|
||||
|
||||
### Migrate database
|
||||
|
||||
```
|
||||
yarn typeorm:run-migrations
|
||||
```
|
||||
|
||||
### Add host to /etc/hosts
|
||||
|
||||
```
|
||||
127.0.0.1 test.rifeberry.loc
|
||||
```
|
||||
|
||||
### Setup node debug
|
||||
|
||||
[Настройка node debug](https://olivergrand.atlassian.net/wiki/spaces/BACK/pages/14319617/Node+debug)
|
||||
|
||||
### Send test request to test.rifeberry.loc/api
|
||||
|
||||
### Optional: Setup wildcard subdomains using dnsmasq
|
||||
|
||||
https://askubuntu.com/questions/1029882/how-can-i-set-up-local-wildcard-127-0-0-1-domain-resolution-on-18-04-20-04
|
||||
Reference in New Issue
Block a user