go-backend

command module
v0.0.0-...-37258df Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

Phishhook Backend Application

Backend server to support the phishhook android application.

Docker

To deploy locally to Docker, you can run make rebuild and check your local docker app for the container. It will expose the application on port 8080.

Tests

Locally
curl -H "X-API-KEY: {API_KEY}"  http://localhost:8080/users
AWS
curl -H'X-API-KEY: {API_KEY}' http://ec2-18-224-251-242.us-east-2.compute.amazonaws.com:8080/users

Deployment to ECS from ECR

This repository is served to the outside world using the Elastic Container Service from Amazon AWS. To make changes and deploy them to ECS, first we must update our Elastic Container Registry image by running make push.

Then, login to the AWS console, and update the Task Definition with the URI of the image. Save. Stop the currently running task and deploy the new Task Definition Revision. Once running, the container is updated!

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