ProseMirror, Firebase Collaborative Editor.
Create a copy of .env.template
whose name is .env.local.<user>
in the root folder. Replace all __fillin__
entries.
Ensure the correct version of NodeJS
nvm install --latest-npm
Set up dependencies
npm install
npm run bootstrap
Typically in separate Terminals
- Watch service-common:
npx env-cmd -f .env.local.<user> npm run watch-service-common
- Watch ssr-service:
npx env-cmd -f .env.local.<user> npm run watch-ssr-service
- Watch web-service:
npx env-cmd -f .env.local.<user> npm run watch-web-service
- Watch (start) web:
npx env-cmd -f .env.local.<user> npm run start-web
- Watch cloud-functions:
npx env-cmd -f .env.local.<user> npm run watch-functions
There should be no errors or warning seen.
Defaults to localhost:3000
npm run clean
rm -rf node_modules
rm -rf packages/service-common/dist
rm -rf packages/ssr-service/dist
rm -rf packages/web/build
rm -rf packages/web/dist
rm -rf packages/web-service/dist
rm -rf packages/cloud-functions/dist
rm -f package-lock.json
rm -f packages/service-common/package-lock.json
rm -f packages/ssr-service/package-lock.json
rm -f packages/web-service/package-lock.json
rm -f packages/web/package-lock.json
rm -f packages/firebase/package-lock.json
rm -f packages/cloud-functions/package-lock.json
npx env-cmd -f .env.local.<user> npm run deploy-rules
npx env-cmd -f .env.local.<user> npm run deploy-functions
npx env-cmd -f .env.local.<user> npm run deploy-specified-functions -- --only functions: <functionName>
npx env-cmd -f .env.local.<username> npm run build-web
npx env-cmd -f .env.local.<username> npm run deploy-web
- Common libs:
npx env-cmd -f .env.local.XXX npm run build-service
- Cloud Functions:
npx env-cmd -f .env.local.XXX npm run build-functions
[ FINISH ]