Skip to content

Reset Development Environment

Robert Spencer edited this page Jun 13, 2024 · 4 revisions

Reset Development Environment

While developing for ChurchCRM, it may become necessary to reset the state of your development environment (code and/or database).

Code Reset

Todo.

Database Reset

In Application

  • Use Admin Database Reset menu item
  • Send a DELETE to /api/database/reset to delete all records and do a clean installation
  • Send a DELETE to /api/people/clear to delete all people from the database

From CLI

Assuming you've already got npm working correctly (and that you ran npm install to get your current dev environment working, running npm restore-demo-db will drop all tables and install the demo db to the database configured in src/Include/Config.php

Clone this wiki locally