Skip to content

Bookstore web application. Buy, rate and comment on books.

Notifications You must be signed in to change notification settings

uros-5/bookstore

Repository files navigation

Simple Bookstore app

I made this web app in the last year at the college 🏫.

It didn't had fancy JavaScript framework, just pure Django + little bit of jQuery 👴.

There is hype going around with HTMX library. So I decided to give it a try 🆒.

Tech Stack

Backend: Python + Django 🐍

Database: SQLite 🏬

Frontend: HTMX + Alpine.js 🏂

Run the application

Clone the repo

git clone https://github.com/uros-5/bookstore
cd bookstore

Setup virtual environment for python.

python3 -m venv venv
source venv/bin/activate

Install dependencies

pip3 install -r requirements.txt

Make migrations for database

python3 manage.py makemigrations
python3 manage.py migrate

Fill database with data(users, authors, books, orders)

Populating database will be executed in 'django shell'.

python3 manage.py shell

In shell paste this

from bookstore import db_work

It will fetch images and do all database related work.

Build frontend

cd bookstore/ui
npm install
npm run build
cd ../..

Run server

sh runserver.sh

Screenshots

screenshot1

screenshot2

screenshot3

screenshot4

gif