nestjs
shopify-api-node
Our great sponsors
nestjs | shopify-api-node | |
---|---|---|
4 | 7 | |
2,048 | 574 | |
3.8% | - | |
8.0 | 9.3 | |
12 days ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nestjs
-
Are there any guides for message brokers in a traditional NestJS REST app?
When you're going to use RabbitMQ I would advise to use the RabbitMQ library at https://github.com/golevelup/nestjs. It's way more flexible than the default RabbitMQ microservice.
-
Providing Providers to Dynamic NestJS Modules
For this, I'm going to be using a package called @golevelup/nestjs-modules to help with the creation of the dynamic module. Instead of having to set up the entire forRoot and forRootAsync methods, we can extend a mixin and let the package take care of the setup for us. everything in this article will work without the package, I just like using it for the sake of simplicity. So, lets dive into setting up our AuthModule to be a dynamic module. First we need to create our injection token for the options
-
How to parse the raw body of a request in a NestJS controller
import { Injectable, NestMiddleware } from '@nestjs/common' import { json } from 'body-parser' /** * Copied this middleware to parse the raw response into a param to use later * from https://github.com/golevelup/nestjs/blob/master/packages/webhooks/src/webhooks.middleware.ts */ @Injectable() export class RawBodyMiddleware implements NestMiddleware { public constructor() {} public use(req: Request, res: Response, next: () => any): any { json({ verify: (req: any, res, buffer) => { if (Buffer.isBuffer(buffer)) { const rawBody = Buffer.from(buffer) req['parsedRawBody'] = rawBody } return true }, })(req, res as any, next) } }
-
What are some good practises for mocking providers in tests
The easiest thing to do is just mock all of a services methods with jest mock functions. I like to do that with this library: https://github.com/golevelup/nestjs/tree/master/packages/testing
shopify-api-node
- Looking for a headless ecommerce solution
- Uninstall > Reinstall > No page, need to ctx.redirect(`/auth?shop=${shop}`);
-
How to fix 'JWT Not Active' issue for devs on Win10 and Ubuntu
overview of 'JWT Not Active' error on Github: https://github.com/Shopify/shopify-node-api/issues/137 ... scroll to bottom for solution... which is basically to restart the time on your machine. that's it. that's the fix.
-
Shopify CLI gotcha: API Version prevents PubSub from working
TLDR / overview of issues Github: https://github.com/Shopify/shopify-node-api/issues/228
- Shopify CLI and NextJS changes - Resources
- GitHub - Shopify/shopify-node-api: Shopify Admin API Library for Node. Accelerate development with support for authentication, graphql proxy, webhooks
-
Introducing a new Node library for accessing the Shopify Admin API
The existing `koa-shopify-auth` package has also been updated to use this new library [migration guide here - link to be provided], as well as our Node+React tutorial and the Shopify App CLI. For some more examples of its usage, please visit the Getting started guide in the GitHub repository.
What are some alternatives?
stompjs - Javascript and Typescript Stomp client for Web browsers and node.js apps
next-shopify-storefront - π A Shopping Cart built with TypeScript, Tailwind CSS, Headless UI, Next.js, React.js, Shopify Hydrogen React,... and Shopify Storefront GraphQL API.
ultimate-backend - Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
twitch - Interact with Twitch's API, chat and subscribe to events via PubSub and EventSub.
hasura-backend-plus - πAuth and π¦Storage for Hasura. The quickest way to get Auth and Storage working for your next app based on Hasura.
stripe-webhooks - π Deploy your own Stripe webhook handler. Create adapters to call webhooks however you like.
amplication - π₯π₯π₯ Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
libauth - An ultra-lightweight, zero-dependency TypeScript library for Bitcoin, Bitcoin Cash, and Bitauth applications.
porn-vault - π Manage your ever-growing porn collection. Using Vue & GraphQL
neohooks - Debug and test webhooks at ease
hasura-auth - Authentication for Hasura.
shopify-api-js - Shopify Admin API Library for Node. Accelerate development with support for authentication, graphql proxy, webhooks