mirror of
https://github.com/Pcko/nook.git
synced 2026-08-07 21:35:28 +02:00
Low-code and No-code Website Builder
https://nook-app-psi.vercel.app/
- JavaScript 55.2%
- TypeScript 39.7%
- CSS 4.7%
- HTML 0.4%
|
|
||
|---|---|---|
| api | ||
| app | ||
| rag | ||
| .eslintignore | ||
| .gitignore | ||
| README.md | ||
How to use nook
DEV
API
Run in ./api
Start the development api server:
npm install
npm run dev
Run to get detailed error info:
npm run typecheck
PUBLISHER
Run in ./api
Start the development publisher server:
npm install
npm run publisherDev
APP
Run in ./app
Start the development app server:
npm install
npm run dev
Run a code-check:
npm run lint
npm run lint:fix
PROD
API
Run in ./api
Start the production api server:
npm install
npm run build
npm run prod
PUBLISHER SERVER
Run in ./api
Start the production publisher server:
npm install
npm run publisherProd
APP
Run in ./app
Bundle the server files into a build:
npm install
npm run build
Test the build:
npm run preview
Deploy the dist/ folder to a hosting provider
ENVIRNOMENT VARIABLES
API
MONGODB_URI= <MongoDB connection-string>
DB_NAME= <Database name>
PORT= <Port the server starts on>
PUBLISH_PORT= <Port the publishing server starts on>
ACCESS_TOKEN_SECRET= <Base64 encoded secret>
REFRESH_TOKEN_SECRET= <Base64 encoded secret>
EMAIL_USER= <Email used for the email client>
EMAIL_PASS= <app access passcode for email>
APP_URL= <BaseURL of the app server>
RAG_URL= <BaseURL of the rag server>
RAG_KEY= <RagKey for access to the rag server>
DEVENV=true (remove if starting in production)
APP
VITE_API_URL= <BaseURL of the API server>
VITE_PUBLISH_URL= <BaseURL of the publishing server>