/myspots-server

MySpots app

Primary LanguageGoMIT LicenseMIT

MySpots

Keep your favorite map spots in cloud application.

Deployment

Enter certbot container:

docker-compose exec certbot sh

Create certificates:

certbot certonly -d yonderland.org,myspots.yonderland.org
# webroot dir is /var/www/certbot 

Generate Diffie-Hellman group to be refered from nginx conf:

 openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048

Development

cd server
docker-compose up -d

or on MacOS:

cd server
lima nerctl compose up -d

build and start server:

cd server
export DB_HOST=localhost
go build -o server && ./server