# set-services

> Monorepo housing all SET services.

Latest version **1.0.0** (published 2023-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install set-services
pnpm add set-services
yarn add set-services
bun add set-services
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-11-27 |
| First published | 2023-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | safejace |

## Links

- npm: https://www.npmjs.com/package/set-services
- npm.io page: https://npm.io/package/set-services

## Recent versions

- 1.0.0 (latest) — 2023-11-27

## README

# Guide 2

**Note:** All terminal commands shown below are assumed to be run from the project root, unless stated otherwise.

## Setup

1. Make sure you are using Node 16 or above:

```bash
nvm install 16 && nvm use 16
```

2. Add the Font Awesome auth token to your environment:

Run the following two commands in your terminal, replacing `FONT-AWESOME-PACKAGE-TOKEN` with [the token in this file](https://drive.google.com/file/d/1HLi-nRp05nwr2qKPK5B_XC-ZiPGXkAHo/view?usp=drive_link):

```bash
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" FONT-AWESOME-PACKAGE-TOKEN
```

This will allow you to install the Font Awesome Pro modules in the next step. [See the FA docs for more info](https://fontawesome.com/docs/web/setup/packages).

3. Install the dependencies:

**pnpm** should be used to install all dependencies *except* for those in `apps/graphql` (this directory uses code that relies on Node 14, which pnpm does not support):

```bash
pnpm --filter=\!graphql-whatsnew install && 
cd apps/graphql && 
npm install
```

4. Add the environment variables:
Copy the contents of [this Drive file](https://drive.google.com/file/d/1TLe9WqSOMpcLKNx9_N5uNpg3cW0fVjqW/view?usp=drive_link) to a new `.env` inside `apps/guide`.

## Development Server

1. Start the GraphQL server on `http://localhost:5000`:

```bash
cd apps/graphql && 
npm run start
```

2. In another terminal, start Vite on `http://localhost:3000`:

```bash
pnpm --filter guide dev
```

## Production

Build the application for production:

```bash
pnpm --filter guide build
```

Locally preview production build:

```bash
pnpm --filter guide preview
```

## Hoisting Dependencies

Some Node packages may have phantom dependencies that are incompatible with pnpm. If you encounter a random error after installing a new package, you can try hoisting it by adding a `public-hoist-pattern` setting to `.npmrc`:

```
shared-workspace-lockfile=false
public-hoist-pattern[]=@vue/reactivity
public-hoist-pattern[]=@vue/runtime-core
public-hoist-pattern[]=@vue/runtime-dom
public-hoist-pattern[]=@vue/shared
public-hoist-pattern[]=nuxt
# ...
```

[Read more](https://pnpm.io/npmrc)

## Resources
- [Confluence documentation](https://safesoftware.atlassian.net/wiki/spaces/IS/pages/2522546216/Guide+2)
- [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction)
- [Nuxt 3 deployment](https://nuxt.com/docs/getting-started/deployment)
- [Nuxt 3 authentication example](https://github.com/damien-hl/nuxt3-auth-example/tree/main) (the auth flow of this app is based on this project)

---
_Source: https://npm.io/package/set-services · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
