All Projects → damienzeng73 → shopping-cart

damienzeng73 / shopping-cart

Licence: MIT License
A simple Shopping-cart built with React and Django REST Framework(DRF)

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to shopping-cart

Generator Django Rest
Yeoman generator for a Django REST/GraphQL API, an optional React SPA & lots more!
Stars: ✭ 77 (+87.8%)
Mutual labels:  create-react-app, django-rest-framework
react-redux-jwt-auth
React Redux: Token Authentication example with JWT, React Router, Axios, Thunk Middleware
Stars: ✭ 86 (+109.76%)
Mutual labels:  axios, jwt-authentication
React Antd Admin
后台前端管理系统,基于react、typescript、antd、dva及一些特别优秀的开源库实现
Stars: ✭ 117 (+185.37%)
Mutual labels:  create-react-app, axios
passport-examples
A variety of examples using PassportJS with ExpressJS and ReactJS applications
Stars: ✭ 44 (+7.32%)
Mutual labels:  create-react-app, axios
basic-todo-app-using-bit
A highly-modular React todo application composed of reusable components from 5 different collections. Full-blown software modularity.
Stars: ✭ 16 (-60.98%)
Mutual labels:  create-react-app, semantic-ui-react
React Antd Admin Template
一个基于React+Antd的后台管理模版,在线预览https://nlrx-wjc.github.io/react-antd-admin-template/
Stars: ✭ 1,022 (+2392.68%)
Mutual labels:  create-react-app, axios
react-jwt-auth
React JWT Authentication & Authorization example - React.js Login and Registration example
Stars: ✭ 307 (+648.78%)
Mutual labels:  axios, jwt-authentication
My Idea Pool Client
💡💡 React + Redux + JWT (Auth) + Formik (Forms). Store and rank your ideas.
Stars: ✭ 18 (-56.1%)
Mutual labels:  axios, jwt-authentication
drf-jwt-example
Code samples of the tutorial "How to Use JWT Authentication with Django REST Framework"
Stars: ✭ 31 (-24.39%)
Mutual labels:  django-rest-framework, jwt-authentication
drf-angular-docker-tutorial
Dockerized Django Back-end API using DRF with Angular Front-end Tutorial
Stars: ✭ 53 (+29.27%)
Mutual labels:  django-rest-framework, jwt-authentication
Django Auth0 Vue
A Django REST Framework + Vue.js CRUD Demo Secured Using Auth0
Stars: ✭ 99 (+141.46%)
Mutual labels:  django-rest-framework, axios
react-laravel-with-jwt-auth
Boilerplate for reactjs (15.6) and laravel (5.5) with jwt-authentication.
Stars: ✭ 75 (+82.93%)
Mutual labels:  jwt-authentication, semantic-ui-react
Django rest Vuejs Auth
An Authentication project using JWT Tokens, Vuejs(frontend) and Django-Rest(backend).
Stars: ✭ 92 (+124.39%)
Mutual labels:  django-rest-framework, jwt-authentication
React Use Api
Async HTTP request data for axios. Designed for diverse UI states, SSR and data pre-caching.
Stars: ✭ 49 (+19.51%)
Mutual labels:  create-react-app, axios
Django React
This a simple Django and React demo application
Stars: ✭ 63 (+53.66%)
Mutual labels:  django-rest-framework, axios
semantic-ui-react-typescript-examples
Several examples using Semantic UI, React, and TypeScript
Stars: ✭ 41 (+0%)
Mutual labels:  create-react-app, semantic-ui-react
reactjs-login-register-crud
ReactJS CRUD Application, ReactJS FileUpload, ReactJS Sample application, ReactJS Boilerplate, ReactJS Login, ReactJS FileUpload, ReactJS Register
Stars: ✭ 47 (+14.63%)
Mutual labels:  axios, jwt-authentication
Quora
Building An Exclusive Community of PEC Graduates and Students.The main features of the website are “PEC Quora” and “PEC Connect”
Stars: ✭ 26 (-36.59%)
Mutual labels:  axios, jwt-authentication
smart-home
Control house using raspberry pi djago based secure REST api. Made using raspberry pi, arduino, django ,django REST and angular.
Stars: ✭ 30 (-26.83%)
Mutual labels:  django-rest-framework, jwt-authentication
django-firebase-auth
Django DRF authentication provider for Google's Firebase Authentication Service
Stars: ✭ 50 (+21.95%)
Mutual labels:  django-rest-framework, jwt-authentication

Shopping-cart

A simple Shopping-cart built with React and Django REST Framework(DRF).

Dependencies

  • Python3+
  • Node
  • PostgreSQL

Getting Started

Installation

Clone this repository:

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

Create virtualenv and install all requirements in backend directory:

cd shopping-cart/backend/
python3 -m venv venv_name
source venv_name/bin/activate
pip install -r requirements.txt

Install all needed node_modules in frontend directory:

cd shopping-cart/frontend/
yarn install

or with npm:

npm install

Prepare database in postgreSQL:

sudo -u postgres psql
CREATE DATABASE shopping_cart; # Don't forget the semicolon in the end

# Quit postgresql shell
\q

Set up database connection in shopping-cart/backend/backend/settings.py in DATABASES section:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'shopping_cart',
        'USER': 'YOUR_USERNAME', # replace with your own username
        'PASSWORD': 'YOUR_PASSWORD', # replace with your own password
        'HOST': 'localhost',
        'PORT': ''
    }
}

Fire up backend server:

cd shopping-cart/backend/
python manage.py migrate
python manage.py runserver

Open another terminal for frontend server:

cd shopping-cart/frontend/
yarn start

or with npm:

npm start

Screenshots

Shopping page

alt text

Filter products

alt text

Add product into cart

alt text

alt text

Cart page

alt text

alt text

alt text

alt text

Account page

alt text

Check orders and Manage products

alt text

alt text

Add new product

alt text

alt text

alt text

Built With

License

This project is licensed under the MIT License - see the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].