- NextJS
- Apollo GraphQL
- Prisma
- PostgresQL
- Run
yarn dev
from the root level directory
-
Update and install PostgreSQL
<version>
:
sudo apt-get update
sudo apt-get install postgresql-<version>
-
By default, the postgres user has no password and can hence only connect if ran by the postgres system user. The following command will assign it:
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE testdb;"
-
Start the PostgreSQL server:
sudo service postgresql start
-
Stop the PostgreSQL server:
sudo service postgresql stop
- Prerequisites: Having
minikube
andkubectl
installed on your machine - From root direc
minikube delete
to clean up your machineminikube start
minikube addons enable ingress
- Using the NGINX Ingress Controllerkubectl apply -f deploy
minikube service nginx-tcp