Giter VIP home page Giter VIP logo

luma-api's Introduction

Luma Mock

使用 Luma 官网 API 运行的可部署网页项目,支持 API 方式调用。预览

Luma Mock

环境变量

变量名称 是否必填 描述
ACCESS_TOKEN 必填 access_token
PROXY_URL 可选 代理接口
SECRET_KEY 可选 访问密钥
ALLOW_ORIGIN 可选 跨域限制,多个地址用 , 隔开

运行项目

前置操作

1:复制根目录下 .env.example 重命名 .env

2:登录 Luma 随便进行一次操作,从控制台网络选项卡中获取 access_token 并填入 .env 文件中的 ACCESS_TOKEN 字段

Access Token

开发环境运行

务必使用 Node>20 以上版本

1: 安装 pnpm

npm install pnpm -g

2: 安装依赖

pnpm install

3: 开发环境运行

pnpm dev

P.S. 开发环境第一次运行可能出现类型错误,请运行 pnpm prepare 后再运行 pnpm dev

部署

Vercel

1:fork 项目

Fork

2:打开 Vercel 新建项目

Vercel

3:选择命令

Script

4:填入环境变量

Environment variable

Node 服务环境

打包

pnpm build

运行

pnpm preview

License

MIT

luma-api's People

Contributors

chanzhaoyu avatar

Forkers

huaixian01

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.