Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
akyoto committed Jun 7, 2018
1 parent 85bd9f3 commit c32ec0f
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Aero: Folders
/components
/security
/db

# Aero: Files
*.log

# Aero: TypeScript
*.js

# Folders
_obj
_test
vendor

# Files
*.o
*.a
*.so
*.cgo1.go
*.cgo2.c
*.exe
*.test
*.prof

# Special files
_testmain.go
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

# Project specific
/konnakanji
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: go

go:
- 1.10.x
- master

install: true

matrix:
allow_failures:
- go: master
fast_finish: true

before_script:
- bash <(curl -s https://raw.githubusercontent.com/blitzprog/gotravis/master/before-script.sh)

script:
- bash <(curl -s https://raw.githubusercontent.com/blitzprog/gotravis/master/script.sh)

after_success:
- bash <(curl -s https://raw.githubusercontent.com/blitzprog/gotravis/master/after-success.sh)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 konnakanji
Copyright (c) 2018 Eduard Urbach

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# konnakanji

[![Godoc reference][godoc-image]][godoc-url]
[![Go report card][goreportcard-image]][goreportcard-url]
[![Tests][travis-image]][travis-url]
[![Code coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]

Study Kanji by testing your own vocabulary list.

[godoc-image]: https://godoc.org/github.com/konnakanji/konnakanji?status.svg
[godoc-url]: https://godoc.org/github.com/konnakanji/konnakanji
[goreportcard-image]: https://goreportcard.com/badge/github.com/konnakanji/konnakanji
[goreportcard-url]: https://goreportcard.com/report/github.com/konnakanji/konnakanji
[travis-image]: https://travis-ci.org/konnakanji/konnakanji.svg?branch=master
[travis-url]: https://travis-ci.org/konnakanji/konnakanji
[codecov-image]: https://codecov.io/gh/konnakanji/konnakanji/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/konnakanji/konnakanji
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/konnakanji/konnakanji/blob/master/LICENSE
21 changes: 21 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"domain": "konnakanji.app",
"title": "Konna Kanji",
"fonts": [],
"styles": [],
"scripts": {
"main": "main"
},
"push": [],
"manifest": {
"name": "Konna Kanji",
"short_name": "Konna Kanji",
"start_url": "/",
"display": "standalone",
"lang": "en"
},
"ports": {
"http": 4000,
"https": 4001
}
}
18 changes: 18 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"github.com/aerogo/aero"
)

func main() {
app := aero.New()
configure(app).Run()
}

func configure(app *aero.Application) *aero.Application {
app.Get("/", func(ctx *aero.Context) string {
return ctx.Text("Konna Kanji")
})

return app
}
22 changes: 22 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"net/http"
"net/http/httptest"
"testing"

"github.com/aerogo/aero"
"github.com/stretchr/testify/assert"
)

func TestApp(t *testing.T) {
app := configure(aero.New())

request, _ := http.NewRequest("GET", "/", nil)
request.Header.Set("Accept-Encoding", "gzip")

response := httptest.NewRecorder()
app.Handler().ServeHTTP(response, request)

assert.Equal(t, http.StatusOK, response.Code)
}
1 change: 1 addition & 0 deletions scripts/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello World")
8 changes: 8 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"baseUrl": "."
}
}

0 comments on commit c32ec0f

Please sign in to comment.