Skip to content

InvisibleProgrammer/invisibleurl.net

Repository files navigation

invisibleurl.net

Local dev:

If you follow the following steps, your instance will run on localhost

To be able to send emails locally, use mailhog

Ask for SMTP settings and fill your .env file

OR you can use mailhog for testing purposes, like this:

Install:

brew install mailhog

Run:

brew services run mailhog

Note: Web UI: http://localhost:8025/

Mailhog dev settings:

SMTP_HOST='localhost'
SMTP_PORT=1025
SMTP_PASSWWORD=''
EMAIL_FROM='noreply@invisibleurl.net'

To run the tests:

go test ./...

SSL section

At localhost, you don't need a certificate. On the production environment, there will be NGinX that handles SSL. Be careful, there is a chance that you will have to fight with your browser on local dev setup to be able to reach the site without SSL. Or, if you want, you can still set up NGinX locally as well and generate a certificate for yourself:

Generate certificate:

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 36500 -nodes

Note: use localhost as fqdn Note: your browser won't like that certificate. You have to add it to your browser's certificate store manually.

Use air to run it locally

Install:

go install github.com/air-verse/air@latest

Run:

air .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors