Skip to content

tiktok/ttspc-react-sample

Repository files navigation

TikTok Shop API Sample Application and Middleware Server - Frontend

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:

  1. Storage of secrets and user data using a simple file-based database.
  2. A REST API for user management, authorization and authentication, and TikTok Shop data for the front end UX.
  3. A typescript SDK for the TikTok Shop API.

Implementation notes

  • Vite is used to build the frontend.

Usage

To install and run:

  1. git clone <this repo>
  2. cd <this repo>
  3. npm install
  4. npm link @ttspc/sample-shared-types
  5. npm run dev

About

TikTok Shop API Sample Application and Middleware Server - Frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors