Giter Club home page Giter Club logo

ecom_django_vue's Introduction

eCommerce website made with django and vue.js hosted on an AWS EC2 instance inside a docker container

How to set up

please note the commands below are for the bash shell on linux, you will need to make some changes to the commands to make it work on windows

  1. get python version 3.7 (it does not work on some other python versions so make sure its 3.7),and make sure you also have pip
  2. clone the project git clone https://github.com/MohammadRafik/ecom_django_vue.git
  3. redirect path to ecom_django_vue cd ecom_django_vue
  4. create a virtual environment python3 -m venv env
  5. activate the virtual env source env/bin/activate
  6. run pip3 install -r requirements.txt now you need to run a local server using django, so do this:
  7. run python3 src/manage.py runserver on a browser if you go to 127.0.0.1:8000 you should be able to see the site now

to also setup the front-end with webpacks and generate a new bundled js file follow the steps below:

  1. make sure you are in the correct path as the steps before, you should be in ecom_django_vue
  2. run npm install
  3. run ./node_modules/.bin/webpack --config ./webpack.config.js this will create a new app.js file and replace the old one. its located at ./src/assets/bundles/app.js

to see the deployment version go to the deployment branch

gif demo:

ecom_django_vue's People

Contributors

mohammadrafik avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.