GithubHelp home page GithubHelp logo

hoangdh1 / finalproject-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zerotohero-hust/finalproject

0.0 0.0 0.0 8.72 MB

Website giới thiệu tour du lịch và đặt tour. Bài tập lớn môn Công nghệ Web và dịch vụ trực tuyến IT4409 học kỳ 20202.

Home Page: https://zerotohero.vietthai2512.digital/

Java 50.44% JavaScript 4.80% CSS 34.25% HTML 10.42% Shell 0.03% Dockerfile 0.06%

finalproject-1's Introduction

FinalProject

Tạo các bảng và thêm dữ liệu cho db

  • Tạo db tên tuỳ ý, vào src/main/resources/config.properties sửa lại các thuộc tính DBNAME, USER, PASSWORD.
  • Sau đó sử dụng terminal/cmd chạy các lệnh sau để tạo bảng và thêm dữ liệu:
mvn clean install
mvn exec:java -P create-tables
mvn exec:java -P populate-tables
  • Nếu muốn xoá hết các bảng và tạo lại dữ liệu cho db:
mvn exec:java -P setup-database

Cài đặt sử dụng docker

  • Cấu hình src/main/resources/config.properties.env như sau:
config.properties .env giá trị
DB_HOST_PORT postgresql:5432
DB_DBNAME DOCKER_DB_DBNAME giống nhau và tuỳ ý
DB_USER DOCKER_DB_USER giống nhau và tuỳ ý
DB_PASSWORD DOCKER_DB_PASSWORD giống nhau và tuỳ ý
DOCKER_VIRTUAL_HOST tuỳ chọn nếu sử dụng nginx-proxy
DOCKER_VIRTUAL_PORT tuỳ chọn nếu sử dụng nginx-proxy
DOCKER_LETSENCRYPT_HOST tuỳ chọn nếu sử dụng nginx-proxy
DOCKER_LETSENCRYPT_EMAIL tuỳ chọn nếu sử dụng nginx-proxy
  • Chạy docker compose up -d
  • Khởi tạo dữ liệu db (chạy lần lượt):
docker exec -it zerotohero-web bash
cd webapps/ROOT/WEB-INF/
java -classpath "lib/*:classes/." com/zeroToHero/FinalProject/database/dbPrep/DBPrepMain setup-database

finalproject-1's People

Contributors

vietthai2512 avatar hoangdh1 avatar phamtuanson179 avatar kudo313 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.