Skip to content

1. Instalaciones previas

Angel riera edited this page Apr 1, 2022 · 1 revision

Install pip

Option 1

```
$ sudo apt update
$ sudo apt install python3-venv python3-pip
```

Option 2

```
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py   ⇒ descarga paquetes iniciales
python get-pip.py
python -m pip install --upgrade pip
```

PostgresSQl

1**.- Install PostgresSQl**

```
$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get -y install postgresql postgresql-contrib
$ sudo apt-get install libpq-dev
```

**2.- execute postgresql**

```
$ sudo service postgresql status
$ sudo service postgresql start
```

**3.- Create database and password**

```
sudo -u postgres psql => start console
```

```
postgres=# alter user Postgres with password 'newPasword';
postgres=# CREATE DATABASE name
```

- set this dates in your .env

```
POSTGRES_NAME=name
POSTGRES_PASSWORD=newPasword
```

siderbar

Clone this wiki locally