A Django-based e-commerce website for FCU (Feng Chia University) merchandise.
- User authentication (login/logout)
- Product listing with images and descriptions
- Shopping cart functionality
- Checkout system
- Purchase history
- Responsive design using Bootstrap
- Python 3.x
- Django
- SQLite (Database)
- Bootstrap 5 (Frontend)
- Pillow (Image processing)
- Clone the repository:
git clone https://github.com/JW-Albert/113-2_FCU_web-final-exam.git
cd 113-2_FCU_web-final-exam- Create and activate a virtual environment:
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On Unix or MacOS
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run migrations:
python manage.py migrate- Create a superuser (admin):
python manage.py createsuperuser- Run the development server:
python manage.py runserverThe application will be available at http://127.0.0.1:8000/
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
- Access the admin interface at
http://127.0.0.1:8000/adminto manage products - Browse products at
http://127.0.0.1:8000/product_list/ - Add products to cart and proceed to checkout
- View purchase history after completing orders
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.