8 luglio 2022, presentazione alla bisaboga di montasico
Alex Myasoedov 8bd45f6a40 Bump alpine version. | преди 5 години | |
---|---|---|
auth | преди 6 години | |
files | преди 6 години | |
slides | преди 6 години | |
static | преди 6 години | |
templates | преди 6 години | |
.dockerignore | преди 5 години | |
.gitattributes | преди 8 години | |
.gitignore | преди 6 години | |
.travis.yml | преди 6 години | |
Dockerfile | преди 5 години | |
LICENSE | преди 8 години | |
Makefile | преди 6 години | |
Readme.md | преди 6 години | |
app_test.go | преди 6 години | |
glide.lock | преди 6 години | |
glide.yaml | преди 6 години | |
initial-slides.md | преди 6 години | |
main.go | преди 6 години | |
package.json | преди 6 години | |
yarn.lock | преди 6 години |
This repo is a reworked version of Sandstorm Hacker Slides which features easy set up run outside of Sandstorm and without vagrant-spk. Likewise you can publish and edit your previous markdown slides which is not supported in the original version.
| Edit mode | Published | | --- | --- | --- | | | | | | |
docker run -it -p 8080:8080 -v $(pwd)/slides:/app/slides msoedov/hacker-slides
To build and run it locally
go get
go run main.go
[GIN-debug] Listening and serving HTTP on :8080
And then you can just open http://127.0.0.1:8080 and it's ready to use with sample slides.
Run with docker
docker run -it -p 8080:8080 -v $(pwd)/slides:/app/slides msoedov/hacker-slides
Basic auth (disabled by default)
USER=bob PASSWORD=password1 go run main.go
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
WARN[0000] Auth mode enabled
WARN[0000] Visit http://bob:password1@0.0.0.0:8080
docker run -it -p 8080:8080 -e USER=bob -e PASSWORD=password1 -v $(pwd)/slides:/app/slides msoedov/hacker-slides
Store pictures you want to use in the images subfolder, slides/images/ and reference them in the editor as Markdown:
![demoPicture](/images/demo.png)
or as HTML:
<img src="/images/demo.png">
For feature requests and bug reports submit an issue to the GitHub issue tracker