Skip to content

ahmadhabibi14/book-library

Repository files navigation

Bacaku

Bacaku

Wait.... don't

Connect Docker
docker-compose up -d

docker exec -it perpus-db mariadb -u perpus -p
# password: perpus123
Install Dependencies
pip install --upgrade pip
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# OR
make setup-python
# OR
make install-dep
Update Dependencies
# If there is a new library installed
make update-dep

Migration

python manage.py makemigrations perpus
python manage.py migrate perpus

Install NodeJS dependencies

npm install
# OR
pnpm install
Import books
cd scripts
./xImportBook.sh
Start development
# Run Django server
./start.sh

# And run Vite + Svelte in seperate terminal
pnpm dev
How to deploy ?

Im still learning... that's gotta be hard