Skip to content

DamnDamnDamnM3/113-2_FCU_Web-Final-Exam

 
 

Repository files navigation

113-2_FCU_web-final-exam

A Django-based e-commerce website for FCU (Feng Chia University) merchandise.

Features

  • User authentication (login/logout)
  • Product listing with images and descriptions
  • Shopping cart functionality
  • Checkout system
  • Purchase history
  • Responsive design using Bootstrap

Technical Stack

  • Python 3.x
  • Django
  • SQLite (Database)
  • Bootstrap 5 (Frontend)
  • Pillow (Image processing)

Installation

  1. Clone the repository:
git clone https://github.com/JW-Albert/113-2_FCU_web-final-exam.git
cd 113-2_FCU_web-final-exam
  1. Create and activate a virtual environment:
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On Unix or MacOS
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run migrations:
python manage.py migrate
  1. Create a superuser (admin):
python manage.py createsuperuser
  1. Run the development server:
python manage.py runserver

The application will be available at http://127.0.0.1:8000/

Project Structure

fcu-shop/
├── fcu_shop/          # Main project configuration
├── shop/             # Main application
├── templates/        # HTML templates
├── static/          # Static files (CSS, JS, images)
├── media/           # User-uploaded files
└── manage.py        # Django management script

Usage

  1. Access the admin interface at http://127.0.0.1:8000/admin to manage products
  2. Browse products at http://127.0.0.1:8000/product_list/
  3. Add products to cart and proceed to checkout
  4. View purchase history after completing orders

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 52.1%
  • HTML 46.7%
  • Other 1.2%