holiday-map

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

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 10 Imported by: 0

README

holiday-map

A basic holiday map website to pin places you went and add photos to it, with a Go backend and a vanilla JS frontend leveraging Leaflet for the map part.

Required files

On the backend side two files need to be created in the /data folder for the website to work.

An auth.json file, used to limit the access to the website with Basic Auth:

{
    "users": [
        {
            "username": "veryDoge",
            "password": "muchSecretManySafe"
        }
    ]
}

A data.json file, used as a makeshift database for an easy setup:

{
    "markers": [],
    "photoCount": 0
}

Additional config

You will have to configure this fields to run this application from a server:

// main.go
const SERVER_FOLDER = "/path/to/the/folder/with/app/and/data"
const DOMAIN_NAME = "my.awesome.website"
<!-- resources/main.html customize FontAwesome kit -->

<!-- FontAwesome -->
<script src="https://kit.fontawesome.com/4988160acf.js" crossorigin="anonymous"></script>
// resources/main.html
const API_PATH = 'https://my.awesome.website'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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