An open API service indexing awesome lists of open source software.

https://github.com/ahmadhabibi14/book-library

Digital book library
https://github.com/ahmadhabibi14/book-library

book-library book-management book-reader django django-rest-framework inertiajs jwt mysql python single-page-site svelte tailwindcss

Last synced: 9 months ago
JSON representation

Digital book library

Awesome Lists containing this project

README

          

## Bacaku

![Bacaku](/app/web/assets/img/Cover.png)

Wait.... don't

##### Connect Docker
```shell
docker-compose up -d

docker exec -it perpus-db mariadb -u perpus -p
# password: perpus123
```

##### Install Dependencies
```shell
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
```shell
# If there is a new library installed
make update-dep
```

#### Migration
```shell
python manage.py makemigrations perpus
python manage.py migrate perpus
```

#### Install NodeJS dependencies
```shell
npm install
# OR
pnpm install
```

##### Import books
```shell
cd scripts
./xImportBook.sh
```

##### Start development
```shell
# 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