https://github.com/shauryagupta3/lib-management
https://github.com/shauryagupta3/lib-management
backend go golang pgx postgresql sql
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shauryagupta3/lib-management
- Owner: shauryagupta3
- Created: 2024-02-03T11:53:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T19:27:47.000Z (over 2 years ago)
- Last Synced: 2024-02-11T17:11:21.770Z (over 2 years ago)
- Topics: backend, go, golang, pgx, postgresql, sql
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lib-management
## Introduction
Creating a Backend library management system which can be used in real life with Go and PostgreSQL. Using chi for router and pgx for communication between DB and serrver. For postgresql I am using a postgresql in a docker cotainer.
## Installation
### Requirements
- go version 1.16 +
- postgreSQL
## Steps
- create a database and add it's url in .env as DB_URL
- run `make run`
## Tutorial
### Users
- POST
`
`
## TODO
- [x] Create Books
- [x] Add author if not exsists
- [x] Check Book if exists
- [x] API handlers
- [x] Create Instances of book
- [x] Link instances to book
- [x] loan instances to members
- [x] Users/Admin Authentication
- [ ] User Authorization
- [ ] Loan books
- [x] create new loan
- [ ] delete old loan
- [x] change status of instance
- [ ] check if member active
- [ ] late fees functionality
- [ ] frontend