Skip to content

rainzoneg/proyek-SBD

Repository files navigation

HTML

Proyek SBD Kelompok 7a

Website shields.io Website shields.io

Anggota

  • Juan Patrick 1906355516
  • Richard Tanoto 1906355586
  • Ronald Grant 1906355655
  • Samuel Nathaniel H. 1906355560

Tentang

Proyek Sistem Basis Data Kelompok 7a, berupa aplikasi Website Cinema On Web (COW) terintegrasi database PostgreSQL untuk menyimpan dan menampilkan data Film, info film terbaru, database film, dll. Prototype dari website dapat dilihat di https://cow-7a.web.app/

Requirement

  1. XAMPP Web Server
  2. PostgreSQL
  3. Node.js

Installation

Buka folder XAMPP->php->php.ini dan uncomment pada extension pgsql agar library pgsql dapat digunakan XAMPP dalam mengoperasikan PHP.

image

Import SQL

  1. Buka Command Prompt dan PostgreSQL
  2. Pada PostgreSQL, membuat database proyeksbd terlebih dahulu dan menghubungkan database proyeksbd dengan: CREATE DATABASE proyeksbd; \c proyeksbd
  3. Pada Command Prompt, mencari lokasi file .sql yang sudah di-download dan ketik psql -U postgres -d proyeksbd -f db_cow.sql
  4. Database siap digunakan.

Database yang Digunakan

Database yang digunakan adalah PostgreSQL, dan spesifikasi database adalah sebagai berikut:

Nama Database: proyeksbd

Digunakan 4 tabel/relasi:

image

Tabel Account

image

CREATE table account_test(account_id serial UNIQUE PRIMARY KEY, 
firstname text NOT NULL,
surname text,
email text UNIQUE NOT NULL,
wallet bigint,
password text);

Tabel Film

image

CREATE table film(film_id int, 
title text,
poster_url text,
release_date date,
studio text,
genre1 text,
genre2 text,
genre3 text,
rating text,
length int,
description text);

Tabel Order

asdasd2

CREATE TABLE order_data(order_id serial NOT NULL PRIMARY KEY,
account_id int,
film_id int,
amount smallint);

Tabel Prices

asdasd3

CREATE TABLE price_data(film_id int,
price int
);

Cara Menjalankan Aplikasi Web

  1. Buka XAMPP dan menyalakan Apache
  2. Menjalankan program back-end pada index.js folder public-back dengan command : node index.js
  3. Selamat mencoba!
  4. Untuk login, menggunakan data tabel account_test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published