A beginner-friendly electronics catalog and inventory/order system built with Vue 3 + TypeScript + Tailwind CSS and Django REST Framework.
- Register and login using JWT authentication
- Product catalog and product search
- Add, edit, and delete products (staff/admin only)
- Upload product images
- Place orders and view order history
- Inventory records
- Django admin for managing users and data
- SQLite for easy local testing; PostgreSQL-ready configuration
- API validation and protected endpoints
frontend/— Vue 3, TypeScript, Tailwind CSS, Vue Router, Pinia, Axiosbackend/— Django REST Framework API, JWT authentication, product image uploads
- Node.js 22.18+ (or a compatible current LTS)
- Python 3.11+
- WebStorm can open the
frontendfolder. Use a terminal in the backend folder for Django.
cd backend
py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python manage.py makemigrations store
python manage.py migrate
python manage.py createsuperuser
python manage.py runserverIf py is not recognized, install Python from python.org and enable the option to add Python to PATH.
Backend runs at http://127.0.0.1:8000/
Admin page: http://127.0.0.1:8000/admin/
API root: http://127.0.0.1:8000/api/
cd frontend
npm install
npm run devOpen the local URL Vite prints, usually http://localhost:5173/.
- The frontend's API base URL is in
frontend/src/services/api.ts. - The starter is configured for local development. Before public deployment, set a strong Django
SECRET_KEY, setDEBUG=False, configureALLOWED_HOSTS, configure CORS for your deployed frontend, and use PostgreSQL. - Registering a user creates a normal customer account. To manage products, log in with the Django superuser account or grant a user staff access in Django admin.
- Product image uploads are stored in
backend/media/during local development. - This is a classroom starter. Test workflows and review security settings before production deployment.