An open-source personal website infrastructure for developers
An open source solution for personal blogs, bookmarks, newsletters & notes.
The system will consist of 3 different apps hosted separately.
Administrative app to manage your admin account and registered sites.
Same app as the main app site, but the visible content will be different. This is for registered users and sites to show contents and manage contents.
NODE_ENV
(production|development)VERCEL_ENV
(production|preview|development) Set automaticallyNEXT_PUBLIC_VERCEL_ENV
(production|preview|development) Set automaticallyVERCEL_URL
(https://{nym-xyz}.vercel.app) Set automaticallyNEXT_PUBLIC_VERCEL_URL
(https://{nym-xyz}.vercel.app) Set automaticallyPUBLIC_URL
(https://nymhq.com)VERCEL_TEAM_ID
Vercel Team IDVERCEL_PROJECT_ID
Vercel Project IDVERCEL_API_TOKEN
(https://vercel.com/docs/rest-api#introduction/api-basics/authentication) Token to access Vercel's APIA good resource to understand Prisma and its Shadow DB
https://www.prisma.io/docs/concepts/components/prisma-migrate/shadow-database
https://blog.tericcabrel.com/understand-the-shadow-database-feature-prisma/
DATABASE_URL
(mysql://user:password@host:port/database)SHADOW_DATABASE_URL
(Only required for local env where we run migration commands)NEXTAUTH_URL
(https://nymhq.com)NEXTAUTH_SECRET
JWT_SIGNING_KEY
GITHUB_ID
GITHUB_SECRET
TWITTER_API_KEY
Use Twitter API KeyTWITTER_API_SECRET
Use Twitter API SecretCLOUDINARY_CLOUD_NAME
- Cloudinary Cloud nameCLOUDINARY_API_KEY
- Cloudinary API KEYCLOUDINARY_API_SECRET
- Cloudinary API SecretCLOUDINARY_PRESET
- Preset name created on Cloudinary, make sure you set the "Signed" property to trueIFRAMELY_API_KEY
- Iframely API key - to extract metadata from a urlOPENAI_API_KEY
PINECONE_ENVIRONMENT
PINECONE_API_KEY
yarn prisma migrate dev
prisma/schema.prisma
yarn prisma format
# Check the changes in the current schema (prisma/schema.prisma)
# and generate migration file, push to DB.
yarn prisma migrate dev
main
branch as a production branchdev
branch from main
branchdev
branch only, not to the main
branch directly.dev
to main
, go to https://app.planetscale.com/sov-ventures/nymhq/deploy-requests and create deployment request from dev
branch to main
branch.