Giter Site home page Giter Site logo

vwingardh / coffio Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.59 MB

Coffio is a dynamic e-commerce web app using PostgreSQL for inventory and user accounts.

Home Page: https://vwingardh.pythonanywhere.com

Python 19.01% CSS 26.11% JavaScript 29.81% HTML 25.07%
css3 django html5 javascript python stripe-api

coffio's Introduction

Coffio E-Commerce Website

Coffio is an e-commerce website designed to be responsive and dynamic. Utilizes PostgreSQL for user accounts, product inventory and content management. Offers features such as creating user accounts, saving products/blog posts to favorites, writing product reviews, updating profile details, viewing orders, and purchasing products through Stripe API.

Built with:

  • Python
  • JavaScript
  • Django
  • Bootstrap
  • PostgreSQL
  • Stripe API
  • PythonAnywhere

๐ŸŽฅ Video Preview

Coffio-preview-video-github.mp4

๐Ÿ‘ฉโ€๐Ÿ”ง Getting Started

These instructions will provide you a copy of the project that you can run locally. Visit PythonAnywhere to set up a free account if you would like to host.

๐Ÿ› ๏ธ Install

Step 1: Open Git Bash and change the current working directory to the location where you want the cloned directory.

git clone git@github.com:vwingardh/Coffio.git

Step 2: Create a virual environment for web app.

python -m venv venv

Step 3: Activate virtual environment with following command.

venv\Scripts\activate

Step 4: Install all packages in requirements.txt file in project directory.

pip install -r requirements.txt

Step 5: By default Django uses SQLite, this app uses PostgreSQL. To use SQLite, change the database code in settings.py to:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': BASE_DIR / 'db.sqlite3',
    }
}

Otherwise, create a PostgreSQL database using pgAdmin and configure NAME and PASSWORD to that of your newly created PostgreSQL database.

Step 6: Generate a new secret key and add to SECRET_KEY in settings.py. Run key_generator.py to generate a new key or use Djecrety to generate a secret key.

Step 7: Create a .env file in the root directory (where manage.py is) to secure secret key and database credentials.

Step 8: Delete existing migrations and migrate to new database.

python manage.py makemigrations

python manage.py migrate

Step 9: Create a superuser for access to the admin panel.

python manage.py createsuperuser

Step 10: Start the development server and ensure there are no errors.

python manage.py runserver

That's it, you're all set!

coffio's People

Contributors

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