bde-liste/README.md

22 lines
859 B
Markdown
Raw Normal View History

2022-12-11 15:16:32 +00:00
# Website for Metz's BDE List
2022-12-11 14:49:41 +00:00
2022-12-11 15:16:54 +00:00
## Installation:
2022-12-11 15:08:28 +00:00
1. Requirements:
2022-12-11 15:53:20 +00:00
* Create a bde-list user in sudoers: `sudo useradd -m -s /bin/bash -G sudo bde-list` and connect to it.
2022-12-11 15:15:41 +00:00
* Install nvm: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
2022-12-11 15:28:23 +00:00
* Install node: `nvm install 18.12.1 && nvm use 18.12.1`
2022-12-11 15:15:41 +00:00
* Install pm2: `npm install pm2 -g`
2022-12-11 15:53:20 +00:00
* Install nginx: `sudo apt-get install nginx`
2022-12-11 16:01:37 +00:00
* Remove default virtual host: `sudo unlink /etc/nginx/sites-enabled/default`
2022-12-11 15:08:28 +00:00
2. Installation:
* Clone this repo
2022-12-11 15:15:23 +00:00
* Install dependencies: `npm i`
2022-12-11 16:02:30 +00:00
* move conf: `sudo mv reverse-proxy.conf /etc/nginx/sites-available/`
* Enable site: `sudo ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf`
2022-12-11 16:05:43 +00:00
* restart nginx: `sudo systemctl restart nginx`
2022-12-11 16:58:14 +00:00
* Run the server: `pm2 start index.js --name bde-liste -i max`