/e-commerce

An ecomemerce website built with django mvt. This project was developed with python, django, html, css, ajax and bootstrap.The cart section was implemented using django sessions and ajax. The live url would be updated soon as the initial deployed url is not valid anymore

Primary LanguageCSS

Sales-inventory-system-e-commerce

This is an e-commerce website developed for phase III of the reskill american bootcamp.

Frontend

  • Html5
  • Css
  • Vanilla Javascript

Backend

  • Python
  • Django Framework
  • postgresql database

To work with this project

  • Fork this repo.
  • Clone this repo to your system.
  • Switch to the develop branch
git checkout -b develop
  • Set your github repo as the remote for your local git repo:
git remote add <unique_remote_name> <github_repo_url>.git

e.g

git remote add origin https://github.com/aayobam/sales-inventory-system-e-commerce.git

DO NOT ADD THE sales-inventory-system-e-commerce REPO AS YOUR REMOTE.

  • Navigate to the relevant folder (e_commerce)
  • Do your work
  • Stage the changed files you'll like to upload:
git add .

for all files. replace * with specific file names if you're only interested in those files.

  • Commit to the develop branch with a clear, descriptive message and issue number, e.g.
git commit -m "Fixed models and bugs for customers as per issue #2."
  • Push to the develop branch of the remote repo:
git push -u origin develop
  • Do a pull request to the develop branch

Installation instructions for backend

  • Make sure you are in a virtual environment.
    • You can use the virtualenv package. If it's not installed on your local machine, install from your terminal, using
    pip install virtualenv
    
    • Once you have virtualenv on your machine, create a virtual environment with a name you choose:
    virtualenv <environment_name>
    
    • Next, activate the environment: For windows
    <environment_name>\Scripts\activate
    
    for linux(Ubuntu)
    source <environment_name>/bin/activate
    
  • Navigate to the e_commerce/e_commerce folder
  • Install the packages in the requirements.txt file
pip install -r requirements.txt
  • Once you're done, you can use pip freeze > requirements.txt to update the requirements.txt file if you installed new packages during your work. Otherwise, there's no need to pip freeze.
  • Exit the virtual environment with
deactivate

=============================

Steps to install virtualenv for for backend:

  • Browse to the e_commerce folder.
  • Type pip install virtualenv to install virtualenv
  • Type virtualenv venv to create venv folder
  • Activate the venv by typing source venv/bin/activate if you are using linux or type venv/Scripts/activate.bat if you are using windows.
  • Install all dependencies on the requirements.txt by typing pip install -r requirements.txt to install all at once.

Project database er-diagram

e-commerce2 e-commerce1