Giter VIP home page Giter VIP logo

piano's Introduction

Piano

阿里前端练习生结课项目

界面效果

image-20211119151315732

在线预览地址

https://likefrost.github.io/Piano

快速开始

cd Piano
npm install
npm start

项目开发

本项目基于 React + icejs + Fusion Design

项目功能

  • 弹奏钢琴,记录用户操作历史
  • 播放用户弹奏历史
  • 播放用户输入的音乐
  • 动态显示当前音频柱状图及随机音符

文件结构

├─public                            //全局资源
│  ├─img
│  └─music
├─src
|   ├─models                        //全局状态
|   └─pages                         //页面
|   |   └─Dashboard
|   |        └─components           //页面组件
|   |        |  ├─InputMusic        //输入音乐框
|   |        |  ├─MusicDisplay      //显示音乐组件
|   |        |  ├─MusicWave         //音乐可视化组件
|   |        |  └─Piano             //钢琴组件
|   |        ├─index.jsx            //页面入口		
|   |        └─index.module.scss
|   ├─app.jsx                       //应用入口
|   ├─global.css                    //全局css配置
|   ├─routes.js                     //路由配置
|   └─store.js                      //store
├─build.json                        // 工程配置
└─package.json

代码规范

使用 eslint 规则,遵循阿里巴巴前端规范

命令行配置:

// package.json
"scripts": {
  "lint": "npm run eslint && npm run stylelint",
  "eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
  "stylelint": "stylelint **/*.{css,scss,less}"
}

运行 lint 任务:

npm run lint

项目部署

piano's People

Contributors

likefrost avatar warmscar avatar windrunnermax avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.