GithubHelp home page GithubHelp logo

shopify-fulfillment's Introduction

Shopify Fulfillment API

This is a Shopify Fulfillment API. It enable app developers to give merchants more control and visibility into order fulfillment. It lets you access and change data inside the application from remote. The request must use the protocol HTTPS. Note - it shows feature of an application that is still in development and as such, can change.

Getting Started and Local Development

  • Clone the repo.
  • Create a .env file in the root of the application. Add these variables (HOST, PORT, MongoDB, TOKEN_SECRET, USERNAME, and PASSWORD) and their respective values. Example:
    • HOST = localhost
    • PORT = 5000
    • MongoDB = mongodb+srv://{username}:{password}@{cluster}.mongodb.net/test?retryWrites=true&w=majority
    • TOKEN_SECRET = 5G4kuCU9V6MdNZkHJEuwTv7kzk
    • USERNAME = myusername
    • PASSWORD = mypassword
  • You can install yarn with this command npm i yarn if you don't have it in your local machine
  • Install dependencies with yarn in terminal
  • Launch the application with npm start
  • Follow the instructions here to generate SSL for localhost
  • Create a folder called https inside src folder
  • Add server.key and server.crt inside it
  • Visit https://localhost:5000/docs for documentation and testing
  • Access sample data https://localhost:5000/api/users

Production Deployment

Additional information coming soon.

Docker version: Install Docker (optional)

  • macOSX Users: Open terminal and type this command brew cask install docker

  • Windows Users: instructions here

  • Linux Users: instructions here

    Run Docker-Compose Up

    Once installed open a command prompt Terminal in the folder you have the docker-compose.yml file in and and run

    Rebuild images without using any cache

    docker-compose build --no-cache

    Start the Cluster

    docker-compose up

    Verify

    • API Documentation: Visit this URL localhost:5000/docs to verify it is up
    • API Endpoint: Visit this URL localhost:5000/api/users to verify it is up.

    Stop the Cluster

    To stop the cluster, type docker-compose down. Data volumes will persist, so it’s possible to start the cluster again with the same data using docker-compose up. To destroy the cluster and the data volumes type docker-compose down -v.

Got any questions?

Email us πŸ˜ŽπŸ€–πŸ‘ΎπŸ‘»

shopify-fulfillment's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.