JacobPernell / songbird

Web-based MIDI piano roll editor for quick music sketches
1 stars 1 forks source link

Songbird Build Status

Web-based MIDI piano roll editor for quick music sketches.

Basic setup

Start the server by doing the following:

  1. Install node
  2. npm install
  3. Develop
    • npm run build to build
    • npm run watch for development & hot module

If you'd like to use a specific port, use the PORT environmental variable.

PORT=5000 npm run server or if you're using fish env PORT=5000 npm run server

Build

If you want to run gulp, use npm run gulp.

Linting code

To lint, use the command npm run lint. This will lint the JavaScript in your .js and .html files. It should also lint your .scss.

Testing

To create tests, make *.test.js files. For example, modal.test.js. Jest will automatically test files with the .test.js extension when run.

To run unit tests, use the npm run test command. Pass/fails should be visible on the command line.

Working on serverside code

nodemon is installed and will refresh on updates to back end code. To use nodemon, run npm run nodemon.