Skip to content

an e commerce site made with Django 4 + vuejs 3

Notifications You must be signed in to change notification settings

toxicmender/store

Repository files navigation

Simpl

A short Full Stack demo app for implementing a simple e-commerce site

Instructions for local deployment

  1. Create a python3 virtual environment:

    Minimum Python version 3.6+, recommended 3.10+

    virtualenv env

    if your system still has python2 as default python make sure you have python3 and then:

    virtualenv env -p python3
  2. Activate the virtualenv:

    • for Mac/Linux (use the extension for your respective shells, like .sh, .bash, .zsh, etc)

      source env/bin/activate
    • for windows

      .\env\Scripts\activate.ps1
  3. Install the dependencies from requirements.txt

    pip install -r requirements.txt
  4. Run django makemigrations and then migrate for initializing the database (SQLite3)

    python ./manage.py makemigrations
    python ./manage.py migrate
  5. Create a superuser for admin interface

    python manage.py createsuperuser
  6. Run the server

    python ./manage.py runserver
  7. Install storefront dependencies

    cd storefront
    npm install
  8. Run the server

    npm run dev