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.
- 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
insidesrc
folder - Add
server.key
andserver.crt
inside it - Visit
https://localhost:5000/docs
for documentation and testing - Access sample data
https://localhost:5000/api/users
Additional information coming soon.
-
macOSX Users: Open terminal and type this command
brew cask install docker
-
Windows Users: instructions here
-
Linux Users: instructions here
Once installed open a command prompt Terminal in the folder you have the
docker-compose.yml
file in and and rundocker-compose build --no-cache
docker-compose up
- 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.
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 usingdocker-compose up
. To destroy the cluster and the data volumes typedocker-compose down -v
. - API Documentation: Visit this URL
Email us ππ€πΎπ»