identity/identity-web/README.md

25 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2024-06-30 17:41:15 +00:00
# identity-web
The web app that interacts with the Identiy API and the Asset API.
## Development and local testing
1. Copy the `.env.example` file: `cp .env.example .env`
2. Run `yarn` to install the dependencies.
2024-06-30 20:05:06 +00:00
- You may need to [enable Corepack](https://nodejs.org/api/corepack.html).
2024-06-30 17:41:15 +00:00
3. Run `yarn dev` and open the specified URL.
4. You're ready to go! Any changes should be reflected in real time.
## Structure
2024-06-30 20:05:06 +00:00
- `./routes` - The pages and associated components. Part of the SvelteKit filesystem routing.
Most of the code is here.
- `./lib` - Various global elements.
- `./lib/api.ts` - The stateless functions that interact with the Identity API and the Asset API.
- `./lib/stores.ts` - The global stores, used to store things like tokens and account info.
- `./lib/entry.ts` - The definitions for an entry.
- **Note:** This file may be moved to a common package in the near future to simplify the
server development process.
- `./lib/assets` - Images used in the landing page.
- `./lib/components` - Components used across various pages.