|
1 | | -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +# Hello Open DIPS React App |
2 | 2 |
|
3 | | -## Getting Started |
| 3 | +Thanks for checking out our Hello World SMART on FHIR app that connects to our |
| 4 | +DIPS sandbox, [Open DIPS](https://open.dips.no)! In short this application |
| 5 | +showcases how you can build a SMART on FHIR app that works with DIPS Arena. |
| 6 | +It's a patient-specific app which fetches some basic information about the |
| 7 | +patient, e.g. their date of birth and a list of documents in the EHR. |
4 | 8 |
|
5 | | -First, run the development server: |
| 9 | + |
6 | 10 |
|
7 | | -```bash |
8 | | -npm run dev |
9 | | -# or |
10 | | -yarn dev |
11 | | -# or |
12 | | -pnpm dev |
13 | | -# or |
14 | | -bun dev |
15 | | -``` |
16 | | - |
17 | | -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 11 | +# Try the app |
18 | 12 |
|
19 | | -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 13 | +If you'd only like to see how the app looks, go to |
| 14 | +[hello.open.dips.no](https://hello.open.dips.no). When asked for credentials you |
| 15 | +can use `OPENDIPS` as both username and password. You can see more information |
| 16 | +about valid data to test with on [open.dips.no/data](https://open.dips.no/data) |
20 | 17 |
|
21 | | -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 18 | +# Run the app yourself |
22 | 19 |
|
23 | | -## Learn More |
| 20 | +To run this app yourself, |
24 | 21 |
|
25 | | -To learn more about Next.js, take a look at the following resources: |
| 22 | +1. Clone down the repository |
26 | 23 |
|
27 | | -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 | | -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 24 | +``` |
| 25 | +$ git clone https://github ... |
| 26 | +``` |
29 | 27 |
|
30 | | -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 28 | +2. Go to open.dips.no/profile and grab the subscription key to our APIs. The |
| 29 | + app needs the subscription key to be able to call our APIs. |
| 30 | +3. Replace the subscription key in the `.env` file. |
| 31 | +4. Build and run the app with `npm`. PS: You'll need to download and install [Node.js](https://nodejs.org/en/) first! |
31 | 32 |
|
32 | | -## Deploy on Vercel |
| 33 | +``` |
| 34 | +$ npm install |
| 35 | +$ npm run build |
| 36 | +$ npm run start |
| 37 | +``` |
33 | 38 |
|
34 | | -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 39 | +# Questions? |
35 | 40 |
|
36 | | -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 41 | +If you have any questions or issues [please submit a new Issue!](https://github.com/DIPSAS/hello-open-dips/issues/new/choose) |
| 42 | +If you want to contribute to the app, or have any changes, feel free to submit a pull request. |
0 commit comments