Browse Source

Updated README

main
Yiğit Çolakoğlu 4 years ago
parent
commit
b3ca8c7fcd
4 changed files with 6 additions and 42 deletions
  1. +2
    -42
      README.md
  2. +1
    -0
      app/controllers/app.go
  3. +3
    -0
      none
  4. BIN
      target/app/Hermes/Hermes

+ 2
- 42
README.md View File

@ -1,43 +1,3 @@
# Welcome to Revel
A high-productivity web framework for the [Go language](http://www.golang.org/).
### Start the web server:
revel run myapp
### Go to http://localhost:9000/ and you'll see:
"It works"
## Code Layout
The directory structure of a generated Revel application:
conf/ Configuration directory
app.conf Main app configuration file
routes Routes definition file
app/ App sources
init.go Interceptor registration
controllers/ App controllers go here
views/ Templates directory
messages/ Message files
public/ Public static assets
css/ CSS files
js/ Javascript files
images/ Image files
tests/ Test suites
## Help
* The [Getting Started with Revel](http://revel.github.io/tutorial/gettingstarted.html).
* The [Revel guides](http://revel.github.io/manual/index.html).
* The [Revel sample apps](http://revel.github.io/examples/index.html).
* The [API documentation](https://godoc.org/github.com/revel/revel).
# Hermes
Hermes is an open source E-Mail tracking solution that is written in Go. It tracks emails using a tracking pixel and when it detects that the e-mail was read, it sends a notification using ![Gotify](https://github.com/gotify/server). This is not meant to be high-quality or easily readible. I made it three hours after learning go to practice, so don't judge me! For more info on how this works, just read the code, it is not that long anyways.

+ 1
- 0
app/controllers/app.go View File

@ -58,6 +58,7 @@ func (h Hermes) Read(title, recipient, user, provided_hash string) revel.Result
return Pixel("No dice") return Pixel("No dice")
} }
identity := title + recipient + user + key identity := title + recipient + user + key
fmt.Printf(identity)
hash_string := fmt.Sprintf("%x", sha256.Sum256([]byte(identity))) hash_string := fmt.Sprintf("%x", sha256.Sum256([]byte(identity)))
if hash_string != provided_hash { if hash_string != provided_hash {
fmt.Printf("Hashes don't match!\n") fmt.Printf("Hashes don't match!\n")


+ 3
- 0
none View File

@ -37,3 +37,6 @@ INFO 2020/11/18 17:29:33 revel revel.go:124: Paths
INFO 2020/11/18 17:32:59 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views INFO 2020/11/18 17:32:59 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/18 17:33:27 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views INFO 2020/11/18 17:33:27 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/18 17:58:27 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views INFO 2020/11/18 17:58:27 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/19 12:26:16 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/19 12:26:50 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/19 12:27:23 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views

BIN
target/app/Hermes/Hermes View File


Loading…
Cancel
Save