Skip to content

scrime-u-bordeaux/web-midifile-performer

Repository files navigation

Midifile Performer

About

This is a VueJS implementation of the Midifile Performer software, as described in Serpette, Haury et al..

Usage

The server can be started with the following env vars :

  • NODE_ENV : e.g. "development" or "production" (default : "development")
  • PORT : the port express will listen to (default : 8000)
  • PUBLIC_PATH : e.g. if the app is run behind a reverse proxy server (default : "/")

Setup

The application keeps track of the current date on every git commit, and displays it.

For this to work, please take the following steps when you set up the repository, before you commit any code :

  1. If such is not already the case, make the config_hooks.sh file executable through the following command :
chmod 744 config_hooks.sh
  1. Run the following npm script :
npm run init_hooks

After this, the process is automatic, and the commit date will be automatically registered. Note : to ensure this information remains meaningful, please do not manually modify or interact with the meta.json file, and only let the git hook do it.

Building

The website is a SPA (single page application) mostly written with VueJS and bundled with Webpack.

To develop, run npm run dev : This will launch a local server that will hot-reload your page on any change during development.

To build, run npm run build : This will result in the creation of a dist folder which will contain an index.html and all the necessary resources, on which you can run any static http server.

To get rid of the hashtag before all the SPA's routes in the browser's url bar :

  • vue-router needs to be initialized with history: createWebHistory() instead of history: createWebHashHistory() in src/router.js
  • the website needs to be served with e.g. node src/server/index.js to provide support for the browser's history api upon which the SPA relies to have multiple routes.

see vue-router's history modes

Todo

define clean dev and prod env files

About

a web version of the midifile performer software

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •