Skip to content

Multi-version PX Mobile solver.

License

Notifications You must be signed in to change notification settings

AzureFlow/px-mobile-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0686ca8 Β· Mar 16, 2024

History

18 Commits
Oct 24, 2023
Aug 29, 2023
Aug 8, 2023
Aug 8, 2023
Oct 21, 2023
Aug 8, 2023
Aug 8, 2023
Aug 9, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Mar 16, 2024
Mar 16, 2024
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Mar 16, 2024
Mar 16, 2024
Aug 8, 2023

Repository files navigation

PX Mobile

An API that automatically generates PerimeterX mobile cookies πŸ€–.

This project is provided "as-is" and without warranty of any kind. It's likely to be broken by updates in the future and is meant to be used as a resource to learn more about reverse engineering.

βš™οΈ Setup

πŸ’» Local

Make sure pnpm is installed.

cp .env.example .env
pnpm install
pnpm run build
pnpm run start

πŸš€ Deployment to Fly.io

flyctl create --name generate-api --no-deploy
flyctl secrets set API_SECRET=example
flyctl secrets set DATABASE_URL=example
flyctl secrets set AXIOM_TOKEN=example
flyctl deploy
fly scale count 2

πŸ”¨ Usage

Start the dev server using pnpm run dev and make a curl request to http://localhost:3000/api/auth to get started. Alternatively, use cli.ts for local testing.

πŸ“š Documentation

See here for app version details.

🧞 Commands

Command Action
pnpm install Installs dependencies
pnpm run dev Starts a local dev server at localhost:3000
pnpm run build Build for production to ./dist
pnpm run start Runs the built production files
pnpm run drizzle:generate Generates Drizzle schema files
pnpm run drizzle:migrate Runs Drizzle migrations
pnpm run drizzle:push Push Drizzle schema changes
pnpm run lint Run ESLint checking
pnpm run prettier:check Check for Prettier violations
pnpm run prettier:format Correct Prettier violations