An open API service indexing awesome lists of open source software.

https://github.com/wnderbin/bookhub

BookHub is a storage website where you can share your books with other users
https://github.com/wnderbin/bookhub

backend book-website go golang website

Last synced: over 1 year ago
JSON representation

BookHub is a storage website where you can share your books with other users

Awesome Lists containing this project

README

          

# BookHub

![image](https://github.com/user-attachments/assets/71944739-9a6a-4b6c-adfc-7bf729a108ab)

![image](https://github.com/user-attachments/assets/906cdbd1-f40a-4045-bc96-ff4f7628e293)

Table of Contents



  1. About the BookHub project



  2. Getting Started


  3. Project structure

  4. License

  5. Author

## About the BookHub project

BookHub is a storage website where you can share your books with other users.

### Built with:

[![My Skills](https://skillicons.dev/icons?i=go,html,css,mysql,bash)](https://skillicons.dev)

* **Go** - Backend
* **Html & Css** - Frontend
* **MySQL** - DBMS, data storage
* **Bash** - Scripts (website launch)

## Getting Started

Instructions on how to run a project locally

### Dependencies

* **MySQL driver** - github.com/go-sql-driver/mysql
* **gorilla/mux** - github.com/gorilla/mux

### Installation and Launch

```
git clone https://github.com/wnderbin/BookHub # clone the repository
```

```
cd BookHub/scripts # go to the directory with scripts

chmod +x run.bash
./run.bash # running script
```

#### !!! Before running the project, make sure that your MySQL database is running with the following parameters:
* **books** - user
* **pass** - password
* **web_books** - database
* **localhost** - ip address (127.0.0.1)
* **3306** - port

## Project structure

**BookHub**: Project directory \
    ├─ **cmd/web_books** - Directory with executable module\
    ├─ **internal** - Additional modules\
          ├─ **handlers** - Directory with handlers\
          └─ **mysql** - Directory with commands for MySQL\
    ├─ **scripts** - Directory with scripts for running the project\
    └─ **ui** - user interface (html/css)

## License
Before using the project, it is recommended to read the license

## Author:
* wnderbin