0.2.1 • Published 9 years ago
upvista v0.2.1
Upvista (work in progress)
Dependencies
- Node.js (v7.2.1+) and npm (v3+)
- PostgreSQL (v9.5+)
ENV variables
see env.ts
Development
First steps
- run
npm installin project root - see
scriptsinpackage.json - start PG and
createdb upvista
Main commands
npm run dev- run server via nodemon (auto relaunch)npm run test-ci- run unit tests in watch modenpm run coverage- code coverage in text format in terminalnpm run coverage-html- code coverage in html format incoveragefolder
Production
- global NODE_ENV=production
- use pm2
npm install -g pm2@latestcd /path-to-projectnpm view upvista dist.tarball | xargs curl | tar --strip-components=1 -zxvnpm install --ignore-scripts- specify global env before next cmd
pm2 start ./ --name upvista -i max --merge-logs --log-date-format="YYYY-MM-DD HH:mm:ss.SSS Z"pm2 save- use
pm2 reload upvistafor reloading - use
pm2 flushfor flush logs - use
pm2 startupfor generate startup script