A space booking system tailored for NTUT students, allowing easy reservation of various campus facilities.
You can try out the application at final.ntut.uk.
- Python 3
- Docker and Docker Compose
- Git
pip install Flask Flask-SQLAlchemy python-dotenvCreate a .env file in the project root with necessary environment variables (see ".env.example" for reference).
version: '3.8'
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: PASSWORD
POSTGRES_DB: booking_db
ports:
- "5438:5432"
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data:cd database
docker-compose up -dpython3 init_db.pypython3 app.pyRequired variables in .env file:
SECRET_KEY: A secret key for Flask sessions.FLASK_ENV: Set todevelopmentorproduction.DATABASE_URL: Database connection string. Include username, password, host, port, and database name.SITE_NAME: The name of the site.SITE_DESCRIPTION: A brief description of the site.
SECRET_KEY=super-super-super-secret-key
FLASK_ENV=development
DATABASE_URL=postgresql://postgres:PASSWORD@localhost:5438/booking_db
SITE_NAME=貝殼 BackSpace
SITE_DESCRIPTION=專屬於北科學生的空間預約平台

