Skip to content

โปรเจ็คนี้เป็นส่วนหนึ่ง CPE231 Database System จัดทำโดย นักศึกษาชั้นปีที่ 3 มหาวิทยาลัยเทคโนโลยีพระจอมเกล้าธนบุรี

Notifications You must be signed in to change notification settings

mello9999/Django_hotel_project

Repository files navigation

Django_hotel_project

โปรเจ็คนี้เป็นส่วนหนึ่ง CPE231 Database System จัดทำโดย นักศึกษาชั้นปีที่ 3 มหาวิทยาลัยเทคโนโลยีพระจอมเกล้าธนบุรี

Authors

Member in team : 'P'EyeSangLuis Team' 🐶

  • 👩 Ms.Natchariya Wongamnuayporn 61070507204
  • 👨 Mr.Natchapol Patamawisut 61070507205
  • 👩 Ms.Thanaporn Cheentada 61070507209

Installing and Set up instructure

Virtualenv & Dependencies

create a virtualenv and run requirements.txt
virtualenv

pip install virtualenv

what is virtual environment ?
A virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated python virtual environments for them. This is one of the most important tools that most of the Python developers use.
read more...

to run requirements.txt

$ pip install -r requirements.txt

here env/ folder contains all dependencies

Run at first time

  1. clone repository
    $ git clone https://github.com/Natchariyawong25/P-EYE-and-Friends-Hotel-Management.git
  2. setting in 'setting.py
          DATABASES = {
            'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'hotel', // ชื่อ database ใน pgAdmin 
            'USER': 'Username', // ใส่ Username pgAdmin ของตัวเอง เพื่อไว้เชื่อมกับ local database
            'PASSWORD': '********* ',  // ใส่ password pgAdmin ของตัวเอง เพื่อไว้เชื่อมกับ local database 
            'PORT': '',
            }
        }
        
  3. run migrations ไว้เชื่อมกับ database
    $ python manage.py migrate
  4. now, runserver
    $ python manage.py runserver

Run after set up instructure

  1. now, runserver
    $ python manage.py runserver

Built with

  • HTML + CSS ใช้ทำหน้า Website
  • django เพื่อเป็นตัวกลางในการเชื่อม database กับ pgAdmin

Version

version 1.0.0 base on 13/12/2020

About

โปรเจ็คนี้เป็นส่วนหนึ่ง CPE231 Database System จัดทำโดย นักศึกษาชั้นปีที่ 3 มหาวิทยาลัยเทคโนโลยีพระจอมเกล้าธนบุรี

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published