The keyboard is a project that demostrates piano keyboard and uses JavaScript MVC framework React. Concerning the design when you click on a white key, the key is highlighted and the corresponding letter is appended to an element below the keyboard that acts as a log.
Requirements
- Yarn/ npm
Ensure you have either npm
or yarn
installed.
To check whether you have
npm
oryarn
installed you can run the commandnpm -v
oryarn -v
to check whether you have them installed respectively. Clone the repo e.g.git clone https://github.com/maretekent/keyboard
to your favourite project directory.
You need to install all the project's dependencies locally, for this you should run
yarn install # If you have yarn installed
# or
npm install # If you have npm installed
Once you have completed all the steps above you are ready to run the application. You can use any of the commands below for that:
yarn start # Use this when you have the backend configured and running too.
# or
yarn start:dummy # To start the application using the dummy server
alternatively is to run
npm start
- You can add an octave to the keyboard on line 17 of App.js file
for instance
octave : ['c','d','e','f','g','a','b','c','d','e','f','g','a','b']
- A nice to have would be creating configurable file or env variables that one can easily add the octave
We are currently using mocha, chai, sinon and enzyme for testing
to run the test just run the following:
npm test
There are pull requests closed Pull Requests
I have logged issues here Issues