The TikTok Shop API Sample Application and Middleware Server includes an example React/Typescript frontend, and an example ExpressJS/Typescript middleware server.
It has the following architecture:
The ExpressJS server performs the following functions:
- Storage of secrets and user data using a simple file-based database.
- A REST API for user management, authorization and authentication, and TikTok Shop data for the front end UX.
- A typescript SDK for the TikTok Shop API.
- Vite is used to build the frontend.
To install and run:
git clone <this repo>cd <this repo>npm installnpm link @ttspc/sample-shared-typesnpm run dev
