-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
61 lines (41 loc) · 1.52 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
grails create-app resolver
cd resolver
grails create-resource UriRecord
Content negotiation:
http://grails.org/doc/latest/guide/single.html#6.8%20Content%20Negotiation
How to ask for a specific type:
curl -D - -L -H "Accept: application/rdf+xml" "http://localhost:8080/resolver/uniprot/P12345"
curl URL
curl --verbose URL
Interactive command
grails interactive
Run the app
grails run-app
Run test app with local database
grails dev run-app
Testing
grails test-app
grails test-app -clean
Upgrade to newer Grails version
grails clean
grails upgrade
Generate war for use in testing use (available at: http://dev.identifiers.org)
grails -Dgrails.env=development war
Generate war for production use (in London Data Centres)
grails -Dgrails.env=production war
Grails docs
http://grails.org/doc/2.1.0/
Functional Testing
http://grails.org/plugin/functional-test
grails test-app -functional
It seems there are some issue with installing the JQuery plugin with 1.4M1, so I manually added the JS file and included in the template
TESTS for:
http://localhost:8080/resolver/ec-code/1.1.1.1
http://localhost:8080/resolver/obo.chebi/CHEBI%3A36927
http://localhost:8080/resolver/obo.chebi/CHEBI:36927
Known issues:
- previously most of the pages are not displayed in IE8
- this came from the fact that a 303 See Other HTTP code was used
- now uses "203 Non-Authoritative Information" for namespaces (no full URL)
- now uses "300 Multiple Choices" for displaying the list of possible resources
testing commit