Skip to content

Commit

Permalink
Merge pull request #23 from osoc24/20-loama-development
Browse files Browse the repository at this point in the history
Add loama development
  • Loading branch information
Vicba authored Jul 25, 2024
2 parents e438584 + bf132fb commit 7f58bd7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions deliverables/loama/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Development
---

# Development

- [:test_tube: Code repository](https://github.com/osoc24/loama/tree/root/loama)

Initially, the idea was to use Nuxt, as it has loads of functionality built in, together with the [@inrupt/solid-client-authn-browser](https://www.npmjs.com/package/@inrupt/solid-client-authn-browser) package. But, as this package has hardcoded usage of the `window` variable, it quickly became apparent that this library had to be used client-side. Thus, the switch from Nuxt to Vue was made.

Besides Vue, Vue Router is also used, and the convention is to use TypeScript and the Composition API. For the authorization, [the controller](/deliverables/controller) is used.

## IDP Provider

Authentication works by providing the URL to the pod provider. To ease the experience a default URL is specified in the `.env` and used in `components/LoginForm.vue`. An example can be found in `.env.example`.

## How to run

Make sure to **first build the controller!**

```sh
# Install dependencies
pnpm install

# Compile and Hot-Reload for Development
pnpm dev

# Build for production
pnpm build


0 comments on commit 7f58bd7

Please sign in to comment.