New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

tm-apps-db

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-apps-db

Apps consumer database initialiser

3.2.21-SNAPSHOT-1
Version published
Weekly downloads
5
-28.57%
Maintainers
10
Weekly downloads
 
Created

tm-apps-db

Apps backend database using the Sequalize library. See /models and /migrations.

  • index.js: provides access to the DB using Sequalize APIs
  • sync.js: command-line tool to init/synchronize the DB models.

Docs

In order to view or generate an entity diagram of the database, go to ./db/docs/ and follow the instructions.

Migrations

Information on using the Sequelize CLI to perform database migrations can be viewed here: http://docs.sequelizejs.com/en/latest/docs/migrations/

To perform migrations then run

$ npm run migrate

Migrations can be reversed by running

$ npm run migrate:undo

Read more in MIGRATIONS.md

TODOs

  • Drone pipeline
  • AWS cloudformation
  • Remove DB credentials from aws/database.yml, get them from SSM or Drone envs

FAQs

Package last updated on 05 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts