https://github.com/staciax/django-book-store
เว็ปไซต์ขายหนังสือนิยาย อนิเมะ เขียนด้วย Django (with next.js app router in django)
https://github.com/staciax/django-book-store
djnago docker docker-compose nextjs postgresql python tailwindcss
Last synced: 6 months ago
JSON representation
เว็ปไซต์ขายหนังสือนิยาย อนิเมะ เขียนด้วย Django (with next.js app router in django)
- Host: GitHub
- URL: https://github.com/staciax/django-book-store
- Owner: staciax
- License: mit
- Created: 2024-04-19T14:59:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-12T09:25:16.000Z (10 months ago)
- Last Synced: 2024-12-11T10:10:13.774Z (6 months ago)
- Topics: djnago, docker, docker-compose, nextjs, postgresql, python, tailwindcss
- Language: Python
- Homepage:
- Size: 315 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ร้านหนังสือนิยาย อนิเมะ และ การ์ตูน
โปรเจค วิชา เว็ปโปรแกรมมิ่ง มีโจทย์ให้ทำเป็นเว็ปไซต์อะไรก็ได้ และ ใช้ต้้องเฟรมเวิร์ค Django ในการทำโปรเจค
เราได้ทำเป็นเว็ปไซต์ขายหนังสือนิยาย อนิเมะ และ การ์ตูน> โปรเจคนี้ทำส่งวิชาเว็ปโปรแกรมมิ่งเท่านั่น ไม่ได้นำไปใช้จริงแต่อย่างใด
## ภาพตัวอย่าง

แสดงเพิ่มเติม
![]()
## ฟีเจอร์
- [x] สมาชิก
- [x] ค้นหาสินค้า
- [x] ตะกร้าสินค้า
- [x] ชำระเงิน
- [x] ประวัติการสั่งซื้อ## Requirements
- [Python](https://www.python.org) 3.12+
- [Node.js](https://nodejs.org/en) 20+## Environment Variables
สร้างไฟล์ .env ในโปรเจค และเพิ่ม Environment Variables ดังนี้
```py
DJANGO_SECRET_KEY='secret'
DJANGO_DEBUG='True'
DJANGO_ALLOWED_HOSTS='*'
DJANGO_CSRF_TRUSTED_ORIGINS='http://, https://'
PROMPTPAY_ID='0987654321'
POSTGRES_DB='database'
POSTGRES_USER='username'
POSTGRES_PASSWORD='password'
POSTGRES_HOST='hostname'
POSTGRES_PORT='5432'
```## Setup
1. สร้าง Virtual Environment
```bash
python3 -m venv .venv
```2. ติดตั้ง Package ที่จำเป็นสำหรับโปรเจค
```bash
# python package
make install
# node package
make node-install
```3. เซ็ตอัพโปรเจค
```bash
make setup
```4. รันโปรเจค
```bash
make run
```## Setup for Development
1. ติดตั้ง Package ที่จำเป็นสำหรับโปรเจค
```bash
make dev-install
```2. รันโปรเจค
```bash
make run
```3. รัน tailwindcss ในโหมด watch
```bash
make tailwind-dev
```## เว็ปไซต์ที่ใช้เป็นแรงบันดาลใจ
- [Phoenix Next](https://www.phoenixnext.com) :heart:
- [Animate BKK](https://animatebkk-online.com)
- [Naiin](https://www.naiin.com)
- [MEB Market](https://www.mebmarket.com)# License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.