Giter Club home page Giter Club logo

online-bookstore's Introduction

Online Book Store

An online book store where people can buy books, in the form of a download, or upload their books in document format for sale.

UX

The site is for buyers and sellers, catering for all tastes in fiction. It would be another way for aspiring authors to get their works sales and attention.

Buyers visiting the site can browse the different book, sorting them by genre if they want. On the home page they will see the title, author, a brief description, the genre, price and an opening excerpt from the book. They see more of this excerpt if they click Read More, taking them to the Book Details page. Here they can buy the book or leave a comment on the book – but only if they log in. Payment is via Stripe. Once they have paid, they will be taken to a Downloads page, where they can download the book in a document format.

Sellers, if logged in, can upload a new book via a form, edit or delete it.

People can be both buyers and sellers, but people can’t edit/delete other people’s books. And sellers won’t see a link to buy their own book.

Features.

Existing Features

  • Register/Log-in/see profile – via Accounts app
  • Add, edit, delete or view details of books - via Books app and delete.js
  • Filter books by genre via genre.js
  • Search by book title via search app
  • Add books to cart via cart app
  • Purchase books via checkout app and stripe,js
  • Download books via download app
  • Comment on books via comment app

Features Left to Implement

Better search facility so not just title search.

Technologies Used

  • Python - The is an app largely using Python3
  • Django - The app uses the Django framework – version 1.11
  • Javascript - Used for DOM manipulation
  • JQuery - Used for DOM manipulation
  • Bootstrap - The app uses the Bootstrap framework to hep create responsiveness.

Testing

The testing has been manual, logging in as several users to make sure books can be added, edited and deleted, but only by the person who has uploaded them. All the other functionality such as registration, logging in, payment and downloading books has also been tested manually.

Payment testing was carried out using the 4242424242424242 Strip testing code.

Also tested on different browsers and devices using responsinator.com

Deployment

The app uses os environment variables stored in the env.py file, which has not been added to GitHub or Heroku.

  • os.environ.setdefault('STRIPE_PUBLISHABLE',’xxxxxxxxxxxxxxx’)
  • os.environ.setdefault('STRIPE_SECRET', 'xxxxxxxxxxxxxx')
  • os.environ.setdefault('DATABASE_URL', 'xxxxxxxxxxxx’)
  • os.environ.setdefault('SECRET_KEY', 'xxxxxxxxxxxxxx ')
  • os.environ.setdefault('AWS_ACCESS_KEY_ID','xxxxxxxxxxx')
  • os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'xxxxxxxxxxxxxx’)
  • os.environ.setdefault('EMAIL_ADDRESS','xxxxxxxxxxx')
  • os.environ.setdefault('EMAIL_PASSWORD','xxxxxxxxxx')

To run in an IDE, use run or python3 manage.py runserver $IP:$C9_PORT", substituting the relevant port details.

Credits

Apps

The checkout, cart and search apps were copied over from the Code Institute course lessons and then changed as appropriate.

online-bookstore's People

Contributors

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