Skip to content

rkrishn7/couchsync-api

Repository files navigation

couchsync API

Build Status Coverage Status

Welcome

This repo hosts the necessary application server code for running the couchsync chrome extension.

Setting Up

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.

Creating a Migration

To create a new migration file, run yarn db:migrate:make <filename_without_extension>.

Reverting

To revert a specific migration, run yarn db:migrate:revert <filename_without_extension>. This will run the code in exports.down.

About

Playback Sync API

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors