npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vendure/falcon-vendure-api

v0.2.0

Published

Vendure API provider for Deity Falcon

Downloads

33

Readme

Falcon Vendure API

This is an experimental api provider for DEITY Falcon. The goal is to allow Falcon to be used as a storefront for Vendure.

Supported Versions

This package has been tested against:

  • @deity/falcon-server v0.4.0
  • @deity/falcon-shop-extension v0.4.6
  • @deity/falcon-client v0.4.1
  • @vendure/core v0.8.0

Since both DEITY Falcon and Vendure are under active development, expect potential instability if attempting to use newer versions than the above.

Installation

With demo.vendure.io

The simplest way to test out the Falcon Vendure API is to run it against the online Vendure demo at demo.vendure.io. In this way, you don't need to worry about running your own local Vendure server.

  1. npm install @vendure/falcon-vendure-api

  2. Configure the extension: In the config/default.json file, replace the api-magento2 config with this:

    {
    "apis": {
      "api-vendure": {
        "package": "@vendure/falcon-vendure-api",
        "config": {
          "host": "demo.vendure.io",
          "port": 443,
          "apiPath": "shop-api",
          "protocol": "https"
        }
      }
    },
    "extensions": {
      "shop": {
        "package": "@deity/falcon-shop-extension",
        "config": {
          "api": "api-vendure"
        }
      }
    }
    }

With a local Vendure server

  1. Set up a Vendure server by following the getting started guide.
  2. In the Vendure config, set authOptions.requireVerification to false so that customer accounts can be created without the need for the email verification step.
  3. In the Vendure config, set the port to 5000 to avoid conflict with the default Falcon client server.
  4. In your Falcon Server project, install @vendure/falcon-vendure-api.
  5. Configure the extension: In the config/default.json file, replace the api-magento2 config with this:
    {
    "apis": {
      "api-vendure": {
        "package": "@vendure/falcon-vendure-api",
        "config": {
          "host": "localhost",
          "port": 5000,
          "apiPath": "shop-api",
          "protocol": "http"
        }
      }
    },
    "extensions": {
      "shop": {
        "package": "@deity/falcon-shop-extension",
        "config": {
          "api": "api-vendure"
        }
      }
    }
    }

Development

  1. Assumes that the main Vendure repo is cloned in a sibling directory, since the codegen.yml file is pointing to the Vendure GraphQL introspection schema in that location.
  2. Run yarn start:dev which will start up:
    • graphql-code-generator (to auto generate TypeScript types for the Vendure & Falcon schemas) in watch mode.
    • tsc (the TypeScript compiler) in watch mode.

Testing

  1. Start the Falcon client (client is not included in this repo to keep things minimal). To install the client locally, see https://falcon.deity.io/docs/getting-started/installation
  2. Run yarn server to run this server locally. The client should then connect to it when opening it in the browser at http://localhost:3000