Installation
Foscia is composed of multiple packages for different purposes (see available packages).
CLI (recommended)
Best way to install Foscia is to install the CLI, and let it install the additional dependencies.
- NPM
- YARN
- PNPM
- Bun
npm install -D @foscia/cli
yarn add -D @foscia/cli
pnpm add -D @foscia/cli
bun add -D @foscia/cli
Once @foscia/cli
is installed, you can run the init
command with the
directory where you want to store your Foscia related files (models, action,
etc.).
- NPM
- YARN
- PNPM
- Bun
npx foscia init
yarn foscia init
pnpm foscia init
bun foscia init
Manual
If you don't want to install @foscia/cli
, you can manually install the set of
package you will need depending on your usage.
- JSON:API
- REST
- HTTP Client
- NPM
- YARN
- PNPM
- Bun
npm install @foscia/core @foscia/http @foscia/jsonapi
yarn add @foscia/core @foscia/http @foscia/jsonapi
pnpm add @foscia/core @foscia/http @foscia/jsonapi
bun add @foscia/core @foscia/http @foscia/jsonapi
- NPM
- YARN
- PNPM
- Bun
npm install @foscia/core @foscia/http @foscia/rest
yarn add @foscia/core @foscia/http @foscia/rest
pnpm add @foscia/core @foscia/http @foscia/rest
bun add @foscia/core @foscia/http @foscia/rest
- NPM
- YARN
- PNPM
- Bun
npm install @foscia/core @foscia/http
yarn add @foscia/core @foscia/http
pnpm add @foscia/core @foscia/http
bun add @foscia/core @foscia/http