tempfiles-backend

command module
v0.0.0-...-6a6986e Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

README

tempfiles-backend

frontend - https://github.com/tempfiles-Team/tempfiles-frontend

tempfiles-backend is a backend for tempfiles-frontend.

How to run - docker

1. build docker image

docker build -t tempfiles-backend .

or pull image from docker hub

docker pull minpeter/tempfiles-backend

2. run docker container

docker run -dp 5000:5000 \
  -e JWT_SECRET=<your secret> \
  -e DB_TYPE=sqlite \
  -v $(pwd)/backend-data:/tmp \
  tempfiles-backend

How to run - local

  1. config .env file

nessary

key value description
JWT_SECRET jwt secret
DB_TYPE sqlite or postgres select db

optional

key value description
BACKEND_PORT 5000 If you want to change the backend port
DB_HOST localhost If postgres is selected, its db ip or hostname
DB_PORT 5432 If postgres is selected, its db port
DB_NAME tempdb If postgres is selected, its db table name
DB_USER tempdb If postgres is selected, its db user name
DB_PASSWORD tempdb If postgres is selected, its db user password
  1. run server
go run .

test server

https://api.tmpf.me

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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