0% found this document useful (0 votes)
4 views2 pages

Linux VPS Setup Guide For Shopify API Server

This guide provides steps to set up a Linux VPS for the Shopify API, including installing system dependencies and required Python modules. It outlines the installation process using a virtual environment and how to run the server, including options for running it in the background. A summary of the core modules needed for the setup is also included for convenience.

Uploaded by

legendxkeygrid
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Linux VPS Setup Guide For Shopify API Server

This guide provides steps to set up a Linux VPS for the Shopify API, including installing system dependencies and required Python modules. It outlines the installation process using a virtual environment and how to run the server, including options for running it in the background. A summary of the core modules needed for the setup is also included for convenience.

Uploaded by

legendxkeygrid
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linux VPS Setup Guide for Shopify API

Server
Follow these steps to install the required modules and run the server on your Linux VPS.
1. Install System Dependencies
First, ensure your system has Python 3.11+ and the necessary build tools for curl_cffi .
Bash
sudo apt update
sudo apt install -y python3-pip python3-venv build-essential libssl-dev

2. Required Python Modules


You need to install 8 core modules. It is highly recommended to use a virtual environment
to avoid conflicts.
Module Purpose
fastapi The web framework for the API
uvicorn[standard] High-performance ASGI server to run the app
curl_cffi Anti-bot HTTP client (impersonates browsers)
httpx[socks,http2] Async client for Telegram and Proxy checks
orjson Ultra-fast JSON processing
pydantic Data validation and settings management
tenacity Advanced retry logic for network requests
async-lru Caching for BIN lookups and site data

3. Installation & Execution


Run these commands inside your project folder:
Bash
# 1. Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate

# 2. Install all modules


pip install --upgrade pip
pip install fastapi "uvicorn[standard]" "curl_cffi>=0.15.0" "httpx[socks,http2]

# 3. Run the server


# --host [Link] makes it accessible from the internet
# --port 8000 is the default port
python3 [Link]

4. Running in Background (Recommended )


To keep the server running after you close your terminal, use nohup or screen :
Bash
nohup python3 [Link] --host [Link] --port 8000 > [Link] 2>&1 &

Summary of Modules to Install


If you want to install them in one line:
pip install fastapi uvicorn[standard] curl_cffi httpx[socks,http2] orjson pydantic tenacity async-lru

You might also like