To get started, run the following commands:
git clone https://github.com/MrPoll0/e1.git
cd api && npm install
cd ../app && npm install
We use NGINX as a reverse proxy. You can find the configuration in nginx
.
You can find the configuration of COTURN in the directory coturn
.
To get your own cli-password:
turnadmin -P -p mypassword
https://gyazo.com/282acca705b768d0696d195dff98c9ff
We use Letsencrypt for HTTPS. To configure it, use the following commands:
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d vibezz.live -d www.vibezz.live -d api.vibezz.live -d turn.vibezz.live
You will need to open the following ports: (remember too see your ip with ip a
)
HTTP
: 80
Node
: 3000
SSL
: 443
turn1
: 3478
turn2
: 5349
MySQL
: 3306 (not at the moment)
SSH
: 22
cd api/src && pm2 start server.js --name api
cd ../../app && pm2 start npm --name "app" -- run dev
pm2 save
git init
git add . (add all [.] or specific files)
git commit -m "Commit message"
git push origin [local branch]:[remote branch]
To check local branch: git branch
.