Giter Club home page Giter Club logo

bookstore's Introduction

Project Information

DEMO VIDEO

Bookstore.Demo.mp4

This project is a webapp based off of Django Python.

It is a prototype bookstore that allows for searching a catalog of books, looking at individual books, and put books into a cart. When testing make sure Cookies ARE enabled, and you have no ad-block, so the session handling for the cart works properly.

All html files used are based off of the bootstrap framework, to allow for a better looking project while focusing more on the backend code. The database used is SQLite3, and all handling is through Django

The project consists of 3 webapps: Core, Store, and Cart

Core is the core webapp that doesn't have any features, just stores the main configuration for URLs, HTML templates, settings, etc.

Store is the store webapp that has almost all the features from the project, excluding the cart. The store has a model named Book, containing variables for a book (title, image, etc).

Cart is the cart webapp that has its main functionality in its name. It needed to be seperate from the store webapp because it was a completely different type of application. Session handling required more views and had no models.

For testing, the project is populated with a top 300 books on Amazon csv file. To populate, the SQLite command line was used. There were other methods to do this, like migrating the data with a python function, but SQLite command line was fastest.

NO IMAGES HAVE BEEN UPLOADED TO THE PROJECT, IT IS NOT AN ERROR, THAT IS JUST A DEFAULT IMAGE. There is no reason to upload images for 300 books for testing.

Instructions (How to run the server on your computer!)

Make sure Python 3.9.5 is installed on your computer.

WINDOWS ONLY: Open Visual Studio Code

Go to File -> Open Folder...

Open the Bookstore-main folder

If prompted to trust authors, click trust authors

Open the terminal using Ctrl + ' and type:

venv\Scripts\activate

If you get a signature error, type this, then try again:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

It should now say (venv) before your directory. venv is just a folder storing the virtual environment!

To run the server, type:

py manage.py runserver

Give it a second, and it should load the fully functional server! It will tell you the local address to put into your web browser to test it out. It should be: http://127.0.0.1:8000/

To go to the ADMIN DASHBOARD, type the local address and put /admin. For example http://127.0.0.1:8000/admin There already is a superuser with username "admin" and password "admin". In the Admin Dashboard, you will be able to manually create, edit, and delete entries in the database for Books.

bookstore's People

Contributors

hadicya 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.