Pre-requisites:
- Node.js >=8.3.0
- PostgreSQL >=9.6 (postgresapp on a mac)
- Redis (
brew install redis
on macredis-server
to start) - SMTP server (like mailcatcher:
brew install ruby
– restart terminal –gem install mailcatcher
thenmailcatcher
)
npm run build
- all the install's prerequisite
pg_restore
installed and present on PATH- a build done (
npm run build
) - DB named
mosaico-backend-test
npm run tape
npx tape tests/functional/authentification.js | npx faucet
requirements: pg_dump
& pg_restore
installed and present on PATH
.backendrc
should be provided with dbConfigs infos. See .backendrc-example
for more informations
- will save a snapshot of the specified DB in the folder defined by
images.tmpDir
config
npm run backup-db
- can copy one snapshot saved in
images.tmpDir
DB into another
npm run sync-db
There is some script to backup a bucket or sync a bucket from a backup.
This is mostly use for development purpose.
- aws cli –
brew install awscli
on a mac .backendrc
filled with s3Configs parameters. See.backendrc-example
more details about why we use the aws cli
npm run backup-s3
npm run sync-s3