Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-duffel-app

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-duffel-app

Scaffolding a full-stack app with duffel SDK setup

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

create-duffel-app

Work in progress!

TODO:

  • Improve README.md (this file and the ones inside the templates)
  • Audit package.json
  • Open-source
  • Add Python template (and possibly others!)

A scaffolding script to bootstrap a fullstack duffel app

The script will guide you through setting up a minimal fullstack application with Duffel API. At the end of the script, you will have:

  • A ready-to-go client and server that can talk to each other locally
  • A Duffel API SDK installed and configured with the provided access token
  • A code example demonstrating how to make a simple flight search using the Duffel API SDK

Boilerplate source:

Getting started

Get the right NodeJS version

If you use nvm, run nvm use. If you use asdf, run asdf install.

Install Yarn

Like all Duffel front-ends, this project uses yarn. If you don't already have it, nstall it globally with npm install --global yarn.

Start developing

yarn dev

This will start a typescript watcher that will regenerate index.js. The scaffold can be run by running node index.js or by linking the package with yarn, just like the following section.

Testing the scaffolded app

Scaffold the sample app by running

# Within the create-duffel-app folder
yarn build && yarn link

# grant permission
chmod +x .yarn/bin/create-duffel-app

# Then on the destination folder
yarn create duffel-app

This will create an app with two folders: client and server

# Within the server folder
yarn start:dev

# On a separate terminal, within the client folder
yarn start

Publishing

TBD

Keywords

FAQs

Package last updated on 05 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc