restClean

module
v0.0.0-...-b072c33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: MIT

README

restClean

Table of contents

General Info

This is small simple REST API Web Application which thanks to Dependency Inversion principle shall be:

  • easy testable
  • independent of frameworks, UI and Databases.

Technologies

This project is build with Go 1.22.

Other dependencies:

  • PostgreSQL / SQLite3 for datastore and testing
  • Redis for cache

Usage

There are examples of API calls in api.rest file, which can be called directly
in VS code with Rest Plus plugin, Jetbrain's GoLand or used with CURL / Postman.

Setup

In order to use PostgreSQL as database, make sure the following environment variables are set:

  • PG_HOST
  • PG_PORT
  • PG_USER
  • PG_PASSWORD
  • PG_DB

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL