com.jasonsnider.go

command module
v0.0.0-...-a1a91b8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 13 Imported by: 0

README

com.jasonsnider.go

A go based implementation of jasonsnider.com, for the sake of learning Go.

Getting stated

Local Development

Clone the project

git clone git@github.com:jasonsnider/com.jasonsnider.go.git
cd com.jasonsnider.go

Start the containers in the required environmnet production|development

docker compose --profile development up -d
docker compose --profile production up -d

Stop the containers

docker compose --profile development down --remove-orphans
docker compose --profile production down --remove-orphans

Commands

Start the server

go run server.go -mode=server

Hash a password

go run server.go -mode=hash -password="<password>"

Compare plain-text to a hash

go run server.go -mode=check -password="<password>" -hashvalue="<hash>"

Production Launch

  • Login into the host machine and clone the project

  • cd com.jasonsnider.go

  • cp .env.dist .env

  • vim .env

  • Load the SSL certs into the private directory.

  • docker compose --profile production up -d

  • Test the DB connection

  • Load the default data.

private directory
- private
    - ssl
        - ${NGINX_HOST}
            - fullchain.pem
            - privkey.pem

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
internal
db
pkg

Jump to

Keyboard shortcuts

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