Code Monkey home page Code Monkey logo

webshop-django's Introduction

Webshop

Content

General info

Generic badge Generic badge Generic badge

It is a cool and simple webshop made with Technologies.

I was mostly focusing on django parts as I was learning it while doing the project. I could make it much prettier, but I didn't want to waste time on it. Also, I didn't want to make it too big because adding new features is pretty easy, and I don't see much sense in actually adding it.

###Screenshots

IF YOU DON'T WANT TO MANUALLY INSTALL IT, HERE ARE SOME SCREENSHOTS OF IT

Work in progress currently...

I will add some screenshots when the site will be prettier...

Technologies

  • Django framework
  • MySql Database
  • HTML, CSS
  • Boostrap

Installation

  1. Clone repository - git clone https://github.com/makubas/webshop-django
  2. Enter project directory - cd webshop-django
  3. In webshop/settings.py change DATABASES { 'default': { 'USER' and 'PASSWORD' } } to your MySql root user and password, defaults are USER: root and PASSWORD: root
  4. Create new MySql database - CREATE DATABASE webshopdb; in your mysql command line client
  5. Create virtual environment in project directory (with manage.py) - pipenv install -r requirements.txt
  6. Run it - pipenv shell
  7. Create databases for the project - py manage.py migrate and py manage.py makemigrations
  8. Run server - python manage.py runserver

Website structure

New py manage.py commands

  • py manage.py createuser <amount> -> Create user(s), it'll return each user email and password.
  • py manage.py createproduct <amount> -> This will create user (seller) of the product(s), and then create given amount of random items.

Subpages

Full list of subpages on website. All of that are registered in app_names/urls.py. If you are wondering what the <uuid> is - UUID

  • / - Home page with listed products
  • /register - Registration for new accounts
  • /login - Log in to existing account
  • /logout - Log out from account
  • /admin - Admin panel
  • /user-me/ - Logged user general informations
    • /user-me/create-product/ - New item creation page
    • /user-me/selling-products/ - Products that user is currently selling
    • /user-me/sold-products/ - List of sold products
    • /user-me/bought-products/ - List of all bought items
    • /user-me/cart/ - Cart with products
  • /user/<username> - Public user page
  • /product/<uuid>/ - Specific product page
    • /product/<uuid>/update/ - Form for editing product informations
  • /purchase/<uuid> - Displays informations about purchase

Apps

  • Profiles - user related things. User model, /user-me views and authentication.
  • Products - showing, searching, editing products.
  • Purchases - data about made purchases, carts and payments.
  • Comments - product comments and stars

Usage

If you made everything correctly you should see the message that the server is running, and you can connect on http://127.0.0.1:8000.

After you see that server is working, register your new account and check out how this works!

webshop-django's People

Contributors

jakubwesta avatar

Stargazers

 avatar

Watchers

 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.