Skip to content

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripture

Monorepo managed with npm workspaces.

Structure

apps/
  api/   Express + MongoDB backend (@scripture/api)
  web/   React + Vite frontend (@scripture/web)

Setup

npm install               # installs deps for all workspaces from the root
cp apps/api/.env.sample apps/api/.env   # fill in real values

Development

npm run dev        # runs api + web together
npm run dev:api     # backend only
npm run dev:web     # frontend only

Build

npm run build       # builds the frontend

Working with individual workspaces

Run any workspace script with -w:

npm run <script> -w @scripture/api
npm run <script> -w @scripture/web

Add a dependency to a specific workspace:

npm install <package> -w @scripture/web

Deployment

  • apps/web (frontend) deploys to Vercel. Root Directory: apps/web.
  • apps/api (backend) deploys to Render. Root Directory: apps/api, Start Command: npm start.

Both platforms build/run only the app in their configured root directory, so each app's own package.json scripts and .env.sample are the source of truth for that app's environment variables.

About

Note-taking app with Markdown (live preview) and rich-text (Editor.js) support. Secure JWT auth with hashed passwords.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages