Giter Club home page Giter Club logo

comp0022's Introduction

COMP0022

COMP0022 Database and Information Management Systems group 2 project

To run the simple system, go to COMP0022 folder on terminal and run the following: - docker-compose build - docker-compose up -d Then on the browser type in: -localhost -localhost:80 Press the "view data" button to see first 10 movies in the list (this will take some time to load the page)

To quit after running docker-compose up -d: type in docker-compose down

To access just the mysql after running the system: 1. If you have ran with docker-compose up, open another terminal, if you have ran with docker-compose up -d, then you should be able to use the same terminal 2. run the command "docker exec -it [container id] mysql -uroot -p 3. You will be asked to enter password which is '123' 4. mysql bash should open

The DBDiagram.png shows the database diagram for the system. 3NF has been applied, but if you have any other ideas for the database diagram (also in case 3NF is not the most recommended database schema) please update the diagram or create another diagram.

To create a database dump for back up: docker-compose exec -t mysql /usr/bin/mysqldump -uroot --password=123 movies > dump.sql This creates a dump.sql file but if run on windows, the file encoding may be utf-16 which will cause error when starting the system. If this is the case, copy all contents of the .sql file and paste into notepad and save file as utf-8 encoding. Also if db_volume has not been created in mysql folder when running the system (most likely when running the system for the first time) and if the following code does not exist in the .sql file: "CREATE DATABASE IF NOT EXISTS movies; use movies;"

The system currently creates a mysql image and a nginx image, then creates a movie database and adds all data from movies.csv file(this is from the file we were given for this project) and shopws 10 records on the web server

Please let me know if you find any other errors or difficulties running the system

comp0022's People

Contributors

jameslee1237 avatar jhtkoo0426 avatar mike-junmin avatar kkyujin99 avatar jameslee123796 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.