You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[View supported endpoints](https://api.dc.library.northwestern.edu/docs/v2/spec/openapi.html) Questions? [View the production API documention](https://api.dc.library.northwestern.edu/)
70
+
64
71
## Running the API locally via our AWS dev domain
65
72
66
73
Use the [https-proxy](https://github.com/nulib/aws-developer-environment#convenience-scripts) script to make the local environment live at: https://[DEV_PREFIX].dev.rdc.library.northwestern.edu:3002/search
@@ -69,6 +76,45 @@ Use the [https-proxy](https://github.com/nulib/aws-developer-environment#conveni
69
76
https-proxy start 3002 3000
70
77
```
71
78
79
+
## Example workflows
80
+
81
+
### Meadow
82
+
83
+
View and edit information about a specific Work in the Index.
84
+
85
+
1. Open a local Meadow instance.
86
+
2. Find an `id` of a Work you'd like to inspect in the API.
87
+
3. View JSON response at `http://USER_PREFIX.dev.library.northwestern.edu:3000/works/[WORK_ID]`
88
+
4. View IIIF Manifest JSON response at `http://USER_PREFIX.dev.library.northwestern.edu:3000/works/[WORK_ID]?as=iiif`
89
+
90
+
For help debugging/inspecting, JavaScript `console` messages are written to: `dc-api-v2/dc-api.log`
91
+
92
+
### DC
93
+
94
+
Develop against changes to the API.
95
+
96
+
1. Before starting the DC app, temporarily change the port number in `dc-nextjs/server.js` from default `3000` to something like `3003`.
97
+
2. Open the port so it can be accessed in the browser.
98
+
99
+
```
100
+
sg open all 3003
101
+
```
102
+
103
+
3. Start the proxy for the API
104
+
105
+
```
106
+
https-proxy start 3002 3000
107
+
```
108
+
109
+
4. Point to the proxy URL and start DC app (in your `/environment/dc-nextjs` shell)
0 commit comments