This repo hosts the necessary application server code for running the couchsync chrome extension.
First, you'll need to define a few environment variables. Copy and paste the following into a locally created .env file.
STAGE=dev
PORT=8000
DB_NAME=couchsync
DB_USER=root
DB_PASSWORD=password
DB_HOST=127.0.0.1- Install dependencies by running
yarn - Start the mysql container by running
yarn docker:up:dev - Create the dev database by running
yarn db:create - Apply the database migrations by running
yarn db:migrate
Run yarn run:watch to start the development server. We use nodemon to watch for file changes and reload the development server.
To create a new migration file, run yarn db:migrate:make <filename_without_extension>.
To revert a specific migration, run yarn db:migrate:revert <filename_without_extension>. This will run the code in exports.down.