Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 944 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 944 Bytes

BorTube Video Microservice

Run local sonarqube analysis: sonar-scanner.bat -D"sonar.projectKey=Video-MicroService-Local" -D"sonar.sources=." -D"sonar.host.url=http://217.105.22.226:9000" -D"sonar.token=sqp_079eb5d66138b8ea5558f6182b98aa0ef959cd4c"

npm run dev for development. Runs on localhost:8000

Docker deploying:
docker build . -t bortube_video_microservice docker run --name bortube_video_microservice bortube_video_microservice

Run db: docker-compose -f ./docker-compose-db.yml up -d

connection string: postgres://myuser:mysecretpassword@localhost:5432/bortube-db DATABASE_URL="postgres://postgres.xtrezgfporrocooxhkue:PASSWORD@aws-0-eu-west-2.pooler.supabase.com:5432/postgres" Docker exec: psql -d bortube-db -U myuser

CREATE TABLE videos ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, duration integer NOT NULL );

CREATE TABLE videos ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, duration integer NOT NULL);