Package Exports
- @mastra/core
- @mastra/core/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mastra/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Future
This is a guide to developing the core package.
Ensure Docker is Installed
If you haven't already, install Docker: (Docker Installation)[https://www.docker.com/]
Start Docker Containers
- Navigate to the .dev directory:
cd .dev - Start the Docker containers:
docker-compose up -d
This command will spin up the necessary services, including the database and the Inngest server.
Setup Environment Variables
- Copy the sample environment variable files: packages/admin/.env.local.sample packages/core/.env.local.sample
- Duplicate and rename each .env.local.sample file to .env:
cp packages/admin/.env.local.sample packages/admin/.env
cp packages/core/.env.local.sample packages/core/.env
Note: We won’t need to do this again after the first setup if the CLI persists credentials.
Install Dependencies for Core Package
- Navigate to the core directory:
cd packages/core - Install the dependencies:
pnpm install
Build and Initialize CLI
- Navigate to the cli directory:
cd packages/cli - Build the project and run the initialization script:
pnpm run build && node dist/index.js init - When prompted, supply the necessary credentials:
Database URL: postgresql://postgres:postgres@localhost:5432/postgres Inngest Server URL: http://localhost:8288