Fanfiction library engine
First of all, you'll need MySQL
v8, Node.js
v20 (latest version would be preferrable) and docker
with docker compose
(to run tests).
Before you begin:
- Create a
.env.development.local
file and fill with required environment variables - Create a database with the name you specified in
DB_NANE
variable
Then, make sure to install the dependencies:
pnpm i
Start the development server on http://localhost:3000
:
pnpm run dev
Build the application for production:
pnpm run build
Locally preview production build:
pnpm run preview
Name | Required | Default value | Description |
---|---|---|---|
DB_NAME | Yes | — | Database name |
DB_HOST | No | "localhost" |
Database server host |
DB_PORT | No | 3306 |
Database server port |
DB_USER | Yes | — | Database user |
DB_PASSWORD | Yes | — | Database password |
AUTH_ORIGIN | Yes | — | Server address for auth callbacks. The origin part of a URL |
AUTH_SECRET | Yes | — | Auth secret for Cookies |