Giter Club home page Giter Club logo

px-mobile-api's Introduction

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

px-mobile-api's People

Contributors

azureflow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.