mirror of
https://github.com/offen/website.git
synced 2024-11-22 09:00:28 +01:00
scaffold project setup and http server
This commit is contained in:
parent
5833d0fc10
commit
f522f0737d
22
.circleci/config.yml
Normal file
22
.circleci/config.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:1.12
|
||||||
|
|
||||||
|
working_directory: ~/offen
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-dependencies-{{ checksum "server/go.mod" }}
|
||||||
|
- run:
|
||||||
|
name: Download modules
|
||||||
|
command: go mod download
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- /go/pkg/mod
|
||||||
|
key: v1-dependencies-{{ checksum "server/go.mod" }}
|
||||||
|
- run:
|
||||||
|
name: Run tests
|
||||||
|
command: make test
|
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[{*.js,*.yml,Gopkg.toml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
4
Makefile
Normal file
4
Makefile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
test: test-server
|
||||||
|
|
||||||
|
test-server:
|
||||||
|
@cd server; go test ./...
|
14
README.md
14
README.md
@ -1,2 +1,14 @@
|
|||||||
# offen
|
# offen
|
||||||
The offen analytics software
|
> The offen analytics software
|
||||||
|
|
||||||
|
This repository contains all source code needed to build and run __offen__, both on the server as well as on the client.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Development of __offen__ has just started, so instructions are rare and things will stay highly volatile for quite some while.
|
||||||
|
|
||||||
|
Guidelines for running and developing the Software will be added when it makes sense to do so. Feel free to open an issue if you have a question.
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
MIT © [Frederik Ring](https://www.frederikring.com), [Hendrik Niefeld](http://niefeld.com/)
|
||||||
|
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
server:
|
||||||
|
image: golang:1.12
|
||||||
|
working_dir: /server
|
||||||
|
volumes:
|
||||||
|
- ./server:/server
|
||||||
|
- $GOPATH/pkg/mod:/go/pkg/mod
|
||||||
|
environment:
|
||||||
|
- GOPATH=/go
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
command: go run cmd/server/main.go
|
Loading…
Reference in New Issue
Block a user