Skip to content

VPavliashvili/bookStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple CRUD api written in golang.
Purpose of this repository is to practice API development with Go and its standard library including new routing enhancements

How to run

  • Docker and Docker compose installed and running on your system
  • Navigate to project root and run docker compose up
  • Make API call with your favorite tool or open swagger on localhost(port can be seen and changed in appsettings.json)

Features

Feature wise this is a very simple API
main emphasis was on general tooling which is listed below

  • OpenAPI support
  • Health check and api info
  • Containerization using docker
  • Hot reaload on file change even inside docker image using CompileDaemon
  • Structured logging with log/slog inside file and console
  • Custom routing grouping and middlewares using net/http

External Libraries/Dependencies

Major point of this project is to implement whole functionality with standard library only
But there was some cases where third party dependencies was neccessary

About

Simple REST api for educational purposes. Emphasizing on standard library

Resources

Stars

8 stars

Watchers

1 watching

Forks

Contributors