Categorygithub.com/tempfiles-Team/tempfiles-backend
modulepackage
0.0.0-20240429045048-3c81605d5ec7
Repository: https://github.com/tempfiles-team/tempfiles-backend.git
Documentation: pkg.go.dev

# 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

keyvaluedescription
JWT_SECRETjwt secret
DB_TYPEsqlite or postgresselect db

optional

keyvaluedescription
BACKEND_PORT5000If you want to change the backend port
DB_HOSTlocalhostIf postgres is selected, its db ip or hostname
DB_PORT5432If postgres is selected, its db port
DB_NAMEtempdbIf postgres is selected, its db table name
DB_USERtempdbIf postgres is selected, its db user name
DB_PASSWORDtempdbIf postgres is selected, its db user password
  1. run server
go run .

test server

https://api.tmpf.me

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author