https://github.com/cessda/cessda.cafe.coffee.carsten
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.7%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: cessda
- License: apache-2.0
- Language: Go
- Default Branch: main
- Size: 99.6 KB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
CESSDA Café: Carsten's Coffee Machine
Golang implementation of CESSDA Café Coffee machine using Gin Gonic.
Installation
Assuming you have go and golint, install the dependencies.
bash
go mod tidy
or
bash
make prep
Options
To specify a port other then the default, set the environment variable
bash
export COFFEE_PORT="1337"
To log log in Gelf format, use the following environment setting
bash
export GELF_LOGGING="true"
In order to turn off debug mode, use
bash
export GIN_MODE="release"
Test suite
The test suite can be executed by calling
bash
make test
API Spec
To produce swagger.json, call
bash
make swagger
Execution
Simply run
bash
make run
and access http://localhost:1337.
Use
Consider the following call:
bash
curl -s -XPOST -d '{ "product": "COFFEE", "jobId": "00000000-BBBB-0000-BBBB-000000000000" }' \
-H "Content-Type: application/json" http://localhost:1337/start-job
with response
json
{
"jobId": "00000000-BBBB-0000-BBBB-000000000000",
"product": "COFFEE",
"jobStarted": "2019-08-01T00:00:01.000Z",
"jobReady": "2019-08-01T00:00:31.000Z"
}
Follow it up with
bash
curl -s http://localhost:1337/retrieve-job/00000000-BBBB-0000-BBBB-000000000000
to get
json
{
"message": "Job not ready"
}
and later
json
{
"jobId": "00000000-BBBB-0000-BBBB-000000000000",
"product": "COFFEE",
"jobStarted": "2019-08-01T00:00:01.000Z",
"jobReady": "2019-08-01T00:00:31.000Z",
"jobRetrieved": "2019-08-01T00:01:31.000Z"
}
GitHub Events
Total
- Delete event: 6
- Issue comment event: 3
- Push event: 7
- Pull request event: 11
- Create event: 6
Last Year
- Delete event: 6
- Issue comment event: 3
- Push event: 7
- Pull request event: 11
- Create event: 6
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 8
- Average time to close issues: N/A
- Average time to close pull requests: 10 months
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.38
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 8
Past Year
- Issues: 0
- Pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: about 1 month
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.17
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 6
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (8)