Skip to content

Commit e4e2a4a

Browse files
committed
updates documentation
Signed-off-by: Nell Shamrell <[email protected]>
1 parent df3fed6 commit e4e2a4a

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,27 @@ Now, let's go through what your are running, container by container.
131131
* Clearly Defined Service
132132
* Clearly Defined Crawler
133133
* Clearly Defined Mongo DB
134-
* Clearly Defined Mongo DB Seed
134+
* Clearly Defined Mongo DB Seed
135+
136+
### Clearly Defined Website
137+
138+
This is the Clearly Defined React UI. It's what you see when you open your browser and go to http://locahost:3000. It connects to the Clearly Defined Service API.
139+
140+
### Clearly Defined Service
141+
142+
This is the backend of Clearly Defined, you can use it through the Website UI or through
143+
querying it directly through the command line.
144+
145+
```bash
146+
$ curl http://localhost:4000
147+
148+
{"status":"OK"}
149+
150+
$ curl localhost:4000/definitions/maven/mavencentral/org.flywaydb/flyway-maven-plugin/5.0.7
151+
152+
{"described":{"sourceLocation":{"type":"sourcearchive","provider":"mavencentral","url":"http://central.maven.org/maven2/org/flywaydb/flyway-maven-plugin/5.0.7/flyway-maven-plugin-5.0.7-sources.jar","revision":"5.0.7","namespace":"org.flywaydb","name":"flyway-maven-plugin"},"releaseDate":"2018-01-30","urls":{"registry":"http://central.maven.org/maven2/org/flywaydb/flyway-maven-plugin","version":"http://central.maven.org/maven2/org/flywaydb/flyway-maven-plugin/5.0.7","download":"http://central.maven.org/maven2/org/flywaydb/flyway-maven-plugin/5.0.7/flyway-maven-plugin-5.0.7.jar"},"tools":["clearlydefined/1"],"toolScore":{"total":100,"date":30,"source":70},"score":{"total":100,"date":30,"source":70}},"licensed":{"declared":"NOASSERTION","toolScore":{"total":15,"declared":0,"discovered":0,"consistency":15,"spdx":0,"texts":0},"score":{"total":15,"declared":0,"discovered":0,"consistency":15,"spdx":0,"texts":0}},"coordinates":{"type":"maven","provider":"mavencentral","namespace":"org.flywaydb","name":"flyway-maven-plugin","revision":"5.0.7"},"_meta":{"schemaVersion":"1.6.1","updated":"2019-11-04T21:59:21.238Z"},"scores":{"effective":57,"tool":57}}
153+
154+
$ curl http://localhost:4000/curations/maven/mavencentral/org.flywaydb/flyway-maven-plugin/5.0.7?expand=prs
155+
156+
'{"curations":{},"contributions":[{"pr":{"number":387,"id":254753509,"state":"open","title":"update flyway maven plugin to the artistic license","body":"\n**Type:** Incorrect\n\n**Summary:**\nupdate flyway maven plugin to the artistic license\n\n**Details:**\nFixed the problem\n\n**Resolution:**\nChanged to the correct license\n\n**Affected definitions**:\n- flyway-maven-plugin 5.0.7","created_at":"2019-02-20T18:53:22Z","updated_at":"2019-02-20T18:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"377d70874899b17c054881929fdc1c4f7dd87ace","user":{"login":"clearlydefinedbot"},"head":{"sha":"cef2ce0577899f9ae429f3750fbf8ec34afb6f76","repo":{"id":115941547}},"base":{"sha":"1f8ee8bbe8200c494bdfa458b5b589dc5c0d9862","repo":{"id":115941547}}},"files":[{"path":"curations/maven/mavencentral/org.flywaydb/flyway-maven-plugin.yaml","coordinates":{"type":"maven","provider":"mavencentral","namespace":"org.flywaydb","name":"flyway-maven-plugin"},"revisions":[{"revision":"5.0.7","data":{"licensed":{"declared":"Artistic-1.0-Perl"}}}]}]}]}n
157+
```

sample_env

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1-
CURATION_GITHUB_REPO="sample-curated-data"
1+
# Curation GitHub Info
2+
CURATION_GITHUB_BRANCH="master"
3+
CURATION_GITHUB_OWNER="clearlydefined"
4+
CURATION_GITHUB_REPO="curated-data-dev"
25
CURATION_GITHUB_TOKEN="<your GitHub token>"
3-
CRAWLER_GITHUB_TOKEN="<your GitHub token>"
6+
7+
# Curation Store Info
8+
CURATION_MONGO_CONNECTION_STRING="mongodb://clearlydefined_mongo_db"
9+
CURATION_MONGO_DB_NAME="clearlydefined"
10+
CURATION_MONGO_COLLECTION_NAME="curations"
11+
CURATION_PROVIDER="github"
12+
CURATION_STORE_PROVIDER="mongo"
13+
14+
# Definition Store Info
15+
DEFINITION_STORE_PROVIDER="mongo"
16+
DEFINITION_MONGO_CONNECTION_STRING="mongodb://clearlydefined_mongo_db"
17+
DEFINITION_MONGO_DB_NAME="clearlydefined"
18+
DEFINITION_MONGO_COLLECTION_NAME="definitions-paged"
19+
20+
# Crawler Info
21+
CRAWLER_GITHUB_TOKEN="<your GitHub token>"
22+

0 commit comments

Comments
 (0)