Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrien2p/medusa-plugin-starter-ts
A plugin starter for medusa pre-configured and using typescript
https://github.com/adrien2p/medusa-plugin-starter-ts
Last synced: 2 months ago
JSON representation
A plugin starter for medusa pre-configured and using typescript
- Host: GitHub
- URL: https://github.com/adrien2p/medusa-plugin-starter-ts
- Owner: adrien2p
- Created: 2022-01-05T23:08:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-10T12:44:36.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T01:56:55.888Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 269 KB
- Stars: 23
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-medusajs - Plugin starter (Typescript)
README
# Getting started
Installation
```bash
git clone [email protected]:adrien2p/medusa-plugin-starter-ts.git
```# Usage
## Api
### Admin routes
Those routes will automatically be attached by medusa to the `admin` path.
### Store routes
Those routes will automatically be attached by medusa to the `store` path.
### Custom routes
All those routes are added in the main router and you have to manage them.
## Models/Migrations
Those models will be attach to the manager and included into the medusa container.
The migrations will be applied automatically.## Subscribers
It acts like a service but its main purpose is to extends core flow depending on the
events you want to listen to.## Services
Those services will be automatically added to the medusa container and will be available
in any other service through the constructor injection.## Loaders
Those will be applied during the loading and allow you to register custom components
to the container to be accessible later on.# Deployment
Once your plugin is done.
```bash
npm run build && npm version && npm publish
```You can now install it into your project file `medusa-config`.