Coder Social home page Coder Social logo

kicksale's Introduction

Kicksale

Welcome to Kicksale!

Here you are able to purchase on-demand sneakers for the lowest prices!

Demo

Was developed using Python 3.9.6, Django 4.0.6 and Bootstrap 4.

Setup

The first thing to do is to clone the repository:

$ git clone https://github.com/elgizabbasov/kicksale.git
$ cd kicksale

Create a virtual environment to install dependencies in and activate it:

$ python -m venv myenv
$ source myenv/bin/activate

Then install the dependencies:

(myenv)$ pip install -r requirements.txt

Note the (myenv) in front of the prompt. This indicates that this terminal session operates in a virtual environment.

Perform Migrations

The SQLite3 database will not be shipped with the project and needs to be initialized before first run. To do this run:

(myenv)$ python manage.py makemigrations

to package up the initial models into individual migration files, and

(myenv)$ python manage.py migrate

directly after that. This will apply the initial models into the database.

Create a Superuser

To access the website's admin panel, you must also create a Django super user. This can be achieved by running:

(myenv)$ python manage.py createsuperuser

and following the instructions after. This is required for adding categories, products, and sizes.

(myenv)$ python manage.py runserver

And navigate to the host address presented in the terminal. (Often http://127.0.0.1:8000/).

Heroku

Kicksale was deployed using Heroku's Free Tier. Heroku requires a Procfile and runtime.txt files to be present to deploy. Application uses Heroku's PostgreSQL Free Plan as the database. To have the server connecting to the correct DATABASE_URL, dj-database-url package is used.

Amazon S3

Application uses Amazon S3 Buckets to store static and media files inside Objects across the app. To be able to integrate S3 with a Django app, several libraries are required: boto3 django-storages

Stripe Payment

All the payments are done through Stripe Elements; Kicksale does not collect any card information from users.

image

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.