dashinja / maidbot-nextjs

Home Page:https://maidbot-nextjs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local Development

First: npm install

Make a prisma database (or migrate a SQL database or whatever) to prisma: Database name should be smallbot

Make a .env of the DATABASE_URL

Example:

# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="mysql://<sqlUser>:<sqlPassword>@<host>/smallbot"

Once procuring a proper DATABASE_URL: This is a required step before running the dev script. pnpm prisma generate

For Local Environment: pnpm run dev

To Build: pnpm run build

To Test: pnpm run test


Utility Scripts

To prettier format everything: pnpm run prettier-format

To run prettier only on staged items: pnpm run pretty-quick

About

https://maidbot-nextjs.vercel.app


Languages

Language:TypeScript 93.9%Language:CSS 4.3%Language:JavaScript 1.6%Language:Shell 0.2%