Fre-ak / px-mobile-api

Multi-version PX Mobile solver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License

This project is completely proprietary and shouldn't be shared under any circumstance.

About

Multi-version PX Mobile solver.


Languages

Language:TypeScript 95.2%Language:Dockerfile 3.7%Language:JavaScript 1.1%