https://github.com/bjfikky/bookloaner_api
An API built with Python's Flask framework, to be consumed by a frontend built in VueJS
https://github.com/bjfikky/bookloaner_api
flask flask-api flask-restful mysql peewee-orm python3
Last synced: 7 months ago
JSON representation
An API built with Python's Flask framework, to be consumed by a frontend built in VueJS
- Host: GitHub
- URL: https://github.com/bjfikky/bookloaner_api
- Owner: bjfikky
- Created: 2018-10-05T14:28:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T00:16:32.000Z (over 7 years ago)
- Last Synced: 2025-07-19T09:52:27.350Z (9 months ago)
- Topics: flask, flask-api, flask-restful, mysql, peewee-orm, python3
- Language: Python
- Size: 7.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About BookLoaner_API
This API provides the resources for a single page application used by a 5th grade teacher. The app helps the teacher manage book loans in her classroom.
Front-end built with **VueJS**. See [Github](https://github.com/bjfikky/BookLoaner_Vue)
## Tools
- Python
- Flask
- Flask_restful
- Peewee
- MySQL
## Use Cases
#### Teacher
1. Login with email and password
2. Add student name and 4 digit passcode
3. Edit student name and passcode
4. Delete a student
5. View list of students
6. Add a book
7. Edit a book
8. Delete a book
9. View all books
10. See student's loan history
11. See which student loaned a book
12. See unavailable books
13. See available books
14. Make a book available *(perform a student's return operation)*
15. Logout
#### Student
1. Loan a book using pass-code
2. Return a book using pass-code
3. View list of all books
4. View list of available books
5. View list of unavailable books
## Database Models
1. User
- username
- email
- password
2. Student
- fullname
- passcode
3. Book
- title
- author
- edition
- genre
4. Loan
- student
- book
- loan_date
- return_date
## Sample Response
