Click this button to deploy the app to the DigitalOcean App Platform. If you are not logged in, you will be prompted to log in with your DigitalOcean account.
In order to run the project, you will need set a few env variables inside of
a .env
file on the root directory
UNSPLASH_ACCESS_KEY=your-access-key
# Coma separated urls (* means all)
ALLOW_ORIGINS="*"
Install go modules
go mod download
run the project with
go run main.go
Or, if you prefer docker
docker-compose up
then you can visit
http://localhost/api/unsplash/photos
http://localhost/api/unsplash/search/photos?query=london