Skip to content

TeraBasedProgrammer/albums-shop

Repository files navigation

Music albums shop

The repository "albums-shop" is a collection of code and files related to an online shop for purchasing albums, built with Django.

Technologies used

  • Django
  • HTML, CSS
  • Python (for data parsing)

Installation

  • If you wish to run your own build, first ensure you have installed Python on your computer globally.
  • If everything is installed, clone this repository to your computer:
https://github.com/TeraBasedProgrammer/albums-shop
  • Setup dependencies
    1. Cd into the project directory

      $ cd albums-shop
    2. Create a python virtual environment

      $ python -m venv env
    3. Activate venv

      • Linux
      $ source env/bin/activate
      • Windows (run the file)
      $ env\Scripts\activate.bat
    4. Install dependencies

      $ pip install -r requirements.txt
  • Run the application
    • Makefile
    $ make run
    or
    • manage.py
    $ python manage.py runserver 8000

Usage

Open the main shop page (http://localhost:8000/albums/). If everything is OK you should see this:

image

For now, website has no data. To make it look like it has to be, you should type following command in terminal:

make setupdb

or

python manage.py setup-db

It will activate the script that will automatically set up the database. After the script runs, the site should look like this:

image

  • To use website as administrator you should create a superuser: In terminal write the following command:
$ python manage.py createsuperuser

Follow the steps, suggested by Django and then log in the system (localhost:8000/login)

Main functions of the website:

  • User registration / authentication
  • Albums shop (sorting, searching, viewing, purchasing, cart page)
  • Admin panel for CRUD operations with albums and related models, for orders and users managing(admin-only features)

License

This project is licensed under GPL v3 license. See file LICENSE.txt.

Contributing

Feel free to contribute to the project. PR are welcome.

Contact

You can reach me in telegram if you need.

About

Music albums online shop make with Django framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors