https://github.com/ksatriow/open-book-api
Open book api, free for testing mobile or web
https://github.com/ksatriow/open-book-api
expressjs nodejs postgresql sequelizejs
Last synced: about 2 months ago
JSON representation
Open book api, free for testing mobile or web
- Host: GitHub
- URL: https://github.com/ksatriow/open-book-api
- Owner: ksatriow
- Created: 2021-08-29T16:21:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-29T17:17:23.000Z (over 4 years ago)
- Last Synced: 2024-12-29T07:43:57.403Z (about 1 year ago)
- Topics: expressjs, nodejs, postgresql, sequelizejs
- Language: JavaScript
- Homepage: https://openbookapi.herokuapp.com/
- Size: 1.58 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OPEN BOOK API
Publicly available application programming interface book
## Features
- Javascript
- Node
- PostgreSQL
- Express
- Sequalize
- REST API
- Heroku
## Procedure
- Install all dependency -> npm install
- Configure your database in config.json
- Create your database with -> sequelize db:create
- Migrate your table with -> sequelize db:create
- Run the code with -> npm run start
### GET Routes
- base url ->
### Get All Book
- /books
### Get A Book
- /books/id
### Post A Book
- /books/create
```json
{
"isbn": "111-222-333-4",
"judul": "Android Expert",
"sinopsi": "Mastering modullarization",
"penulis": "Google",
"genre": "Android"
}
```
### Update A Book
- /books/id
```json
{
"isbn": "111-222-333-4",
"judul": "Android Expert",
"sinopsi": "Mastering modullarization",
"penulis": "Google",
"genre": "Android"
}
```
### Delete A Book
- /books/id
## Documentation
[Here is the online backend url](https://openbookapi.herokuapp.com/)
[Here is the online documentation](https://documenter.getpostman.com/view/5826819/TzzHnDMQ)
## Preview
1. Create a book

2. Get a book

3. Get all book

4. Update book

5. After update book

6. Before delete

7. Delete a book id 3

8. After delete
