bookish:Bookster可让您与世界各地的书迷共享书籍

时间:2024-04-09 00:43:06
【文件属性】:

文件名称:bookish:Bookster可让您与世界各地的书迷共享书籍

文件大小:52KB

文件格式:ZIP

更新时间:2024-04-09 00:43:06

TypeScript

MySQL示例 这是在Next.js项目中使用的示例。 演示版 自己部署 获得使用部署示例: 如何使用 使用或执行以引导示例: npx create-next-app --example with-mysql next-mysql-app # or yarn create next-app --example with-mysql next-mysql-app 配置 步骤1.设置一个MySQL数据库 在本地或任何云提供商处设置MySQL服务器。 步骤2.设置环境变量 将此目录中的env.local.example文件复制到.env.local (Git将忽略): cp .env.local.example .env.local 在.env.local上设置每个变量: MYSQL_HOST您MySQL主机URL。 MYSQL_DATABASE您要使用MySQL数据库的名称。 MYS


【文件预览】:
bookish-main
----components()
--------edit-entry-form()
--------login-form()
--------footer()
--------container()
--------entry-form()
--------entries()
--------nav()
--------register-form()
--------button-link()
--------button()
----.gitignore(2KB)
----tsconfig.json(596B)
----README.md(4KB)
----pages()
--------_app.tsx(269B)
--------index.tsx(2KB)
--------access-denied.tsx(602B)
--------api()
--------login.tsx(218B)
--------new.tsx(291B)
--------register.tsx(123B)
--------entry()
----package.json(799B)
----models()
--------users.interface.ts(447B)
--------decoded-token.interface.ts(125B)
--------books.interface.ts(458B)
--------errors.interface.ts(265B)
--------token-response.interface.ts(107B)
----next-env.d.ts(75B)
----scripts()
--------migrate-db.js(1KB)
----helpers()
--------fetch.helpers.tsx(626B)
--------auth.helpers.tsx(2KB)
--------cookie.helpers.tsx(204B)
----styles()
--------index.css(352B)
----postcss.config.js(298B)
----tailwind.config.js(311B)
----yarn.lock(90KB)
----lib()
--------swr-hooks.ts(390B)
--------db.ts(525B)

网友评论