Skip to content

mowbish/shopping-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

243 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopping-cart

python django Docker DRF Nginx NextJS HTML CSS JS

Installation


Docker

First of all clone repo:

git clone https://github.com/mowbish/shopping-cart.git

next step: cd to cloned project in terminal or cmd:

Windows Linux
> cd shopping-cart\ $ cd shopping-cart/

now you should enter this command (you should install docker and docker-compose before):

sudo docker-compose up --build

Wait a few minutes

well done! :D

you can see project in this route:

  • http://127.0.0.1:8000/

notic: Only the first time you need to hit --build in docker-compose command and after the that, it is no longer necessary to do it.


Custom - if you don't want Docker

clone repo:

git clone https://github.com/mowbish/shopping-cart.git


Back-end

Now, if you haven't installed ‍‍‍Python virtualenv, you should install it After that go into the project folder and create a virtual env

Windows Linux
> cd shopping-cart\back-end\src $ cd shopping-cart/back-end/src
> python -m venv venv $ virtualenv venv
> venv\scripts\activate $ source venv/bin/activate
> pip install -r ..\requirements.txt $ pip3 install -r ../requirements.txt
> python manage.py makemigrations $ python3 manage.py makemigrations
> python manage.py migrate $ python3 manage.py migrate
> python manage.py runserver $ python3 manage.py runserver


### Front-end First install [Node.js](https://nodejs.org/en/download/) to use NPM.
Then install the dependencies
> cd shopping-cart\front-end
> npm install
then build and run the website
> npm run build
> npm start
Or run it for development purpose
> npm run dev


Also the project rout's are:

  • http://127.0.0.1:8000/
  • http://127.0.0.1:8000/swagger/
  • http://127.0.0.1:3000/(front)

Enjoy it ;)

Project Structure


├── back-end
│   ├── Dockerfile
│   ├── requirements.txt
│   └── src
│       ├── accounts
│       │   ├── admin.py
│       │   ├── api
│       │   │   ├── permissions.py
│       │   │   ├── serializers.py
│       │   │   ├── urls.py
│       │   │   └── views.py
│       │   │
│       │   ├── apps.py
│       │   ├── __init__.py
│       │   ├── migrations
│       │   │   └── __init__.py
│       │   │
│       │   ├── models.py
│       │   ├── tests.py
│       │   └── views.py
│       │
│       ├── common
│       │   ├── basemodels.py
│       │   └── utils.py
│       │
│       ├── conf
│       │   ├── asgi.py
│       │   ├── __init__.py
│       │   ├── settings.py
│       │   ├── urls.py
│       │   └── wsgi.py
│       │
│       ├── manage.py
│       │
│       ├── orders
│       │   ├── admin.py
│       │   ├── api
│       │   │   └── urls.py
│       │   ├── apps.py
│       │   ├── choices.py
│       │   ├── __init__.py
│       │   ├── migrations
│       │   │   └── __init__.py
│       │   ├── models.py
│       │   ├── test.py
│       │   └── views.py
│       │
│       └── products
│           ├── admin.py
│           ├── api
│           │   ├── serializers.py
│           │   ├── urls.py
│           │   └── views.py
│           │
│           ├── apps.py
│           ├── choices.py
│           ├── __init__.py
│           ├── managers.py
│           ├── migrations
│           │   └── __init__.py
│           │
│           ├── models.py
│           ├── test.py
│           └── views.py
│ 
├── front-end
│   ├── components
│   │   ├── globals.scss
│   │   ├── Header
│   │   │   ├── Header.js
│   │   │   └── Header.module.scss
│   │   └── input.js
│   ├── data
│   │   ├── allStore.js
│   │   ├── compare.js
│   │   ├── user.js
│   │   └── window.js
│   ├── Dockerfile
│   ├── functions
│   │   ├── addAddress.js
│   │   ├── lengthCheck.js
│   │   ├── login.js
│   │   ├── refresher.js
│   │   └── signup.js
│   ├── next.config.js
│   ├── package.json
│   ├── package-lock.json
│   ├── pages
│   │   ├── _app.js
│   │   ├── _document.js
│   │   ├── index.js
│   │   └── profile
│   │       ├── address
│   │       │   └── index.js
│   │       ├── index.js
│   │       ├── login.js
│   │       └── sign-up.js
│   └── public
│       ├── account.svg
│       ├── favicon.ico
│       ├── Untitled.png
│       └── vercel.svg
├── docker-compose.yml
└── README.md

Project Detail:

This project is developing under the Agile method

Agile is an iterative approach to project management and software development that helps teams deliver value to their customers faster and with fewer headaches. Instead of betting everything on a "big bang" launch, an agile team delivers work in small, but consumable, increments

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors