Files
DentalManagementElogin/docs/server-setup.md
2025-12-03 22:18:43 +05:30

43 lines
828 B
Markdown

# Server Setup Guide
## 1. Update System Packages
```bash
sudo apt update && sudo apt upgrade -y
```
## 2. Install Node.js (LTS)
```bash
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
node -v
npm -v
```
## 3. Install Python 3
```bash
sudo apt install -y python3 python3-pip python3-venv
python3 --version
pip3 --version
```
## 4. Pip global config :
```bash
sudo bash -c 'echo -e "[global]\nbreak-system-packages = true" > /etc/pip.conf'
```
-- this is optional, either create a venv for separate python based app in repo, or simply have global permissson by this.
## 4. Install PostgreSQL
```bash
sudo apt install -y postgresql postgresql-contrib
sudo systemctl start postgresql
sudo systemctl enable postgresql
```
## 5. Install Git
```bash
sudo apt install -y git
```