nahumsa / BooksAPI

Restful API for a book database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Books API using golang

Run in Postman Documentation

Introduction

This is an REST API that is constructed to read a database of books. This is based on the article from Rahman Fadhil, where I adapted the implementation to use PostgreSQL. I also made a front end in order to search for books from a given author or a given id.

Usage

For the first time you run, use the -reset flag in order to create the database in your local computer. There is also a frontend that is on the localhost:8080.

Testing

All tests were made on postman and are shared on this link or in the button above.

Todo:

Things that I plan to implement on the future.

  • Create database
  • Migrate database
  • Add a flag to reset the database
  • Add books to the database
  • Delete books
  • Query all books
  • Query book id
  • Query selected author
  • Create a frontend
    • Show all books
    • Find a book using the ID
    • Find a book by the Author
  • Create tests
  • Deploy on Heroku

About

Restful API for a book database.


Languages

Language:Go 82.9%Language:HTML 16.4%Language:Shell 0.7%