Giter VIP home page Giter VIP logo

aspoem's Introduction

Imgur

移动端

310017729-c5728ebe-2977-4471-b0e1-92cd872874ee 310017294-502bd505-e10e-4e4c-86d8-e93f91ab7201

现代化**诗词学习网站,一个更加注重 UI和阅读体验 的诗词网站。

参与贡献

贡献指南

本地部署

复制一份 .env.example 并将其重命名为 .env

# 后台操作需要的 Token,  http://localhost:3000/create?token=v0
TOKEN="v0"

# 本地
POSTGRES_PRISMA_URL="postgresql://meetqy@localhost:5432/aspoem"
POSTGRES_URL_NON_POOLING="postgresql://meetqy@localhost:5432/aspoem"

# 统计相关 没有可不填 不会加载对应的代码
# google analytics id
NEXT_PUBLIC_GA_ID="G-PYEC5EG749"

# microsoft-clarity-id
NEXT_PUBLIC_MC_ID="ksel7bmi48"
pnpm i
pnpm dev

未安装 POSTGRES

  1. prisma/schema.prisma 中的
datasource db {
    provider  = "postgresql"
    url       = env("POSTGRES_PRISMA_URL")
    directUrl = env("POSTGRES_URL_NON_POOLING")
}

改为

datasource db {
    provider  = "sqlite"
    url       = env("POSTGRES_PRISMA_URL")
    directUrl = env("POSTGRES_URL_NON_POOLING")
}
  1. .env
# 本地
POSTGRES_PRISMA_URL="postgresql://meetqy@localhost:5432/aspoem"
POSTGRES_URL_NON_POOLING="postgresql://meetqy@localhost:5432/aspoem"

改为

POSTGRES_PRISMA_URL="file:./db.sqlite"
POSTGRES_URL_NON_POOLING="file:./db.sqlite"
  1. prisma/sample.sqlite 改为 db.sqlite

执行安装命令

pnpm i
pnpm db:push
pnpm dev

许可证

对于个人用户,许可证持有者授予其使用本开源项目的权利,遵守 GNU Affero General Public License(AGPL)3.0 版本的条款和条件。

商业许可证

对于用户进行盈利或商业用途的情况,用户必须购买商业许可证,以获得相应的商业使用权。

请联系: [email protected]

aspoem's People

Contributors

meetqy avatar john-chen92 avatar iamflowerdog 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.