Skip to content

takdirzd/basic_api_bookstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Aplikasi sederhana Bookstore Backend API (Go + PostgreSQL)

Ini adalah aplikasi backend sederhana untuk toko buku (Bookstore) yang dibangun menggunakan Go dan PostgreSQL. Proyek ini mendukung berbagai operasi CRUD dasar melalui RESTful API, dan untuk frontend menggunakan Python dan Django sebagai framework web.


πŸš€ Fitur Utama

  • Create Book: Menambahkan data buku baru
  • Read Books: Menampilkan daftar semua buku
  • Update Book: Mengubah status atau detail buku
  • Delete Book: Menghapus data buku berdasarkan ID
  • Validasi Method: Menolak method selain yang diizinkan
  • .env Integration: Konfigurasi database menggunakan file .env
  • Custom Response Struct: Format response seperti status, method, dan description

Struktur Direktori

bookstore_backend/  
β”œβ”€β”€ db/               # Inisialisasi koneksi database  
β”‚   └── db.go  
β”œβ”€β”€ handler/          # Handler endpoint API (CRUD)  
β”‚   β”œβ”€β”€ create.go  
β”‚   β”œβ”€β”€ delete.go  
β”‚   β”œβ”€β”€ get.go  
β”‚   └── update.go  
β”œβ”€β”€ model/            # Struktur model data  
β”‚   └── models.go  
β”œβ”€β”€ utils/            # Fungsi utility umum (seperti response JSON standar)  
β”‚   └── response.go  
β”œβ”€β”€ .env              # File konfigurasi environment  
β”œβ”€β”€ go.mod            # Informasi module Go dan dependency  
β”œβ”€β”€ go.sum            # Checksum dependencies  
└── main.go           # Entry point aplikasi  
β”œβ”€β”€ bookstore_frontend/                      # Frontend Django
β”‚   β”œβ”€β”€ bookstore_frontend/
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   β”œβ”€β”€ asgi.py
β”‚   β”‚   β”œβ”€β”€ settings.py
β”‚   β”‚   β”œβ”€β”€ urls.py
β”‚   β”‚   β”œβ”€β”€ views.py
β”‚   β”‚   └── wsgi.py
β”‚   β”œβ”€β”€ templates/
β”‚   β”‚   └── index.html
β”‚   β”œβ”€β”€ db.sqlite3
β”‚   └── manage.py

image

About

Ini adalah project untuk membuat aplikasi sederhana Bookstore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published