artpaper

module
v0.0.0-...-293b262 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT

README

Artpaper

REST API of site with articles

Stack

  • Go with gin
  • PostgreSQL
  • Redis
  • Docker

Running

Set environment variables in .env file
GIN_MODE=debug
APP_PORT=8080
JWT_SIGN_KEY=
PASSWORD_SALT=

POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=

TOKEN_STORAGE_HOST=token_storage
TOKEN_STORAGE_PORT=6379
TOKEN_STORAGE_PASSWORD=

CACHE_HOST=cache
CACHE_PORT=6379
CACHE_PASSWORD=
Clone
git clone https://github.com/gelerum/artpaper.git
Build containers
cd artpaper
docker-compose build
Up containers
docker-compose up

Documentation

For documentation open 0.0.0.0:8080/swagger/index.html in browser while running.

License

Usage is provided under the MIT License. See LICENSE for the full details.

Directories

Path Synopsis
cmd
api command
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag
pkg

Jump to

Keyboard shortcuts

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