Skip to content

devingen/sepet-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sepet API

Rest API for Sepet.

Building and running the server

Build and run ./cmd/sepet/sepet.go.

Check the environment variables defined in config/app.go. They must all have the prefix SEPET_ like SEPET_S3_ACCESS_KEY_ID.

Running the Docker image

// pull the latest image
docker pull devingen/sepet-api:VERSION_HERE

// stop and remove any existing container
docker stop sepet-api && docker rm sepet-api

// run the container
docker run \
  --restart always \
  --name sepet-api \
  -e SEPET_API_PORT=8080 \
  -e SEPET_API_LOG_LEVEL=debug \
  -e SEPET_API_S3_ACCESS_KEY_ID=ACCESSKEYIDFORTHEFILESERVER \
  -e SEPET_API_S3_SECRET_ACCESS_KEY=ACCESSKEYFORTHEFILESERVER \
  -e SEPET_API_S3_REGION=region-of-the-cdn \
  -e SEPET_API_S3_BUCKET=the-root-bucket-name-in-s3 \
  -e SEPET_API_MONGO_URI=mongodb://complete.mongo.uri \
  -e SEPET_API_MONGO_DATABASE=mongo-database-name \
  -e SEPET_API_WEBHOOK_URL=https://sepet.webhook.url
  -e SEPET_API_WEBHOOK_HEADERS=api-key=custom-header
  -p 8080:8080 \
  devingen/sepet-api:VERSION_HERE

Development

Releasing new Docker image

docker build --platform linux/amd64 -t devingen/sepet-api:0.0.10 .
docker push devingen/sepet-api:0.0.10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published