Academia JavaEE Workspace in Ubuntu: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:


  psql academia < academia.sql
  psql academia < academia.sql
==Redis==
<source lang="bash">
systemctl status redis-server
</source>
==Workspace==
<source lang="bash">
mkdir -p $HOME/chorke
mkdir -p /opt/dev/$USER/chorke/academia
export ACADEMIA_WSS="$HOME/chorke/academia"
ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_WSS
ls -lah $HOME/chorke
</source>


==References==
==References==
* [[PostgreSQL]]
* [[PostgreSQL]]

Revision as of 10:44, 5 January 2021

Java

PostgreSQL

Install

createdb $USER

Schema

CREATE DATABASE academia;
CREATE USER academia WITH ENCRYPTED PASSWORD 'academia';
GRANT ALL PRIVILEGES ON DATABASE academia TO academia;
psql academia < academia.sql

Redis

systemctl status redis-server

Workspace

mkdir -p $HOME/chorke
mkdir -p /opt/dev/$USER/chorke/academia

export ACADEMIA_WSS="$HOME/chorke/academia"
ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_WSS
ls -lah $HOME/chorke

References