A production-ready, modern e-commerce platform built with:
Frontend: https://django-svelte-ecommerce.vercel.app
Backend: https://django-svelte-ecommerce-production.up.railway.app
Test user credentials: Please reach out to me for test user credentials or create your own by using the registration form on the frontend.
Disclaimer: This live demo is running on free-tier infrastructure across multiple global regions and providers. As a result, response times may vary and performance is not guaranteed. This environment is intended for testing and evaluation purposes only and should not be used for production workloads.
.
├── backend/ # Django project & API backend
├── frontend/ # SvelteKit app (SSR frontend)
Prerequisites:
cd backend
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env # Edit .env file as needed
python manage.py createsuperuser
python manage.py makemigrations
python manage.py migrate
python manage.py seed_data # To seed sample data using Faker library # Optional
Open /o/applications/ and add an application. Copy the client id and client secret and replace it in .env file.
client type: public
Authorization grant type: authorization code
Redirect URI list:
<your-backend-url>/oauth2-redirect.html
<your-frontend-url>/auth/callback
Finally, run the server:
python manage.py runserver
cd frontend
npm install
npm run dev
cd backend
python manage.py test
For more info, check backend/ecomm/TESTING.md
cd frontend
npm run test
API Documentation is available at https://django-svelte-ecommerce-production.up.railway.app/docs/
Check API Usage Examples to see how the API is used.
backend
.gunicorn ecomm.wsgi:application
frontend
.npm run build
# This is the default build commandbuild
# This is the default output directory