-
Notifications
You must be signed in to change notification settings - Fork 45
RNL Configuration
Pedro Correia edited this page Mar 4, 2020
·
4 revisions
- Creating database (its recommended to use a Docker container)
setup-docker
*execute the exports printed by the previous command*
place the demo.sql in /tmp
docker run -d \
--name postgres \
-p 5432:5432 \
-v /tmp/demo.sql:/docker-entrypoint-initdb.d/dump.sql \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_USER=engineer \
-e POSTGRES_DB=tutordb \
postgres:alpine
*Dont forget to change -v to the absolute path of your demo.sql file
To view tables:
docker ps
docker exec -it CONTAINER ID psql tutordb -U engineer
- Setting correct java version (add them to .bashrc file so it executes everytime you open the console)
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
export PATH="$JAVA_HOME/bin:$PATH"
- VS Code
You can you VS code for frontend but make sure prettier is well configured