Some changes were made for a MVP
This commit is contained in:
13
README.md
13
README.md
@@ -1,6 +1,11 @@
|
||||
# Advertisement_Panel
|
||||
## How To Run This Project
|
||||
```bash
|
||||
go run main.go
|
||||
```
|
||||
|
||||
This project is written with go, and has hot realoding for the main.go
|
||||
## How To Add To This Project
|
||||
This project is written with go, and has hot realoding (rebuilding when sensing changes) for the main.go
|
||||
|
||||
Install Air
|
||||
```bash
|
||||
@@ -12,15 +17,13 @@ Add air to path or use the following disgusting command
|
||||
$(go env GOPATH)/bin/air -c .air.toml
|
||||
```
|
||||
|
||||
|
||||
# Tasks
|
||||
|
||||
- [ ] Interface for adding new images
|
||||
- [ ] ATB integration
|
||||
- [ ] ASCII ART support
|
||||
- [ ] show more spicy images after kl 10:00
|
||||
- [ ] show more spicy images after kl 22:00
|
||||
- [ ] more images???
|
||||
|
||||
|
||||
# NB
|
||||
# NB!!!!
|
||||
Changes in the static directory will not rebuild the project, simple workaround is to just make a small change in main.go and save, for example adding a space
|
||||
|
3
main.go
3
main.go
@@ -2,13 +2,14 @@ package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
fmt.Print("Now running server!")
|
||||
// Serves index
|
||||
http.HandleFunc("/", index_handler)
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
setInterval(() => {
|
||||
index = (index + 1) % images.length;
|
||||
document.getElementById("images").src = images[index];
|
||||
}, 1000);
|
||||
}, 10000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user