riccardobertolini / lofi-music

Create your music while working/studying
https://www.lofimusic.dev
MIT License
45 stars 30 forks source link
help help-wanted open-source opensource typescript

Contributors Forks Stargazers Issues MIT License codecov

Lofi-Music 🎡

A React 18 + NextJS project, created for fun. I was tired of opening YouTube for some lo-fi music while working 🀭.

✨ Click here for a live demo!

alt text

πŸ’‘ About

Lofi-Music is a web application that allows you to create custom music while working or studying! Simply click any sounds you like from the wide selection to overlay them into a custom mix.

Built With


βœ… Getting Started

First, clone the repo to your device using the command:

git clone https://github.com/riccardobertolini/lofi-music.git

Then, change directories into lofi-music with the command:

cd lofi-music

Next, run the following command to install all modules and their dependencies:

npm install


πŸš€ Usage

To run the app in development mode, run the following command:

npm run dev

Then, open http://localhost:3000 (default port) to view it in the browser.

To build the app for production to the build folder, run:

npm run build


❓ Instructions


πŸ”§ Run tests

To run the tests, run the following command:

npm test

To check the test coverage (minimum required global 70%), run the following command:

npm test -- --coverage

Once the command is run, search for the /coverage folder, then /lcov-report, and open index.html in a browser.


πŸ“‚ Project Structure

.
β”œβ”€β”€ components // All app components (MusicTiles, Shuffler, etc.)
β”œβ”€β”€ constants // Enum of colors
β”œβ”€β”€ contexts // Accessibility Context
β”œβ”€β”€ data // Music list with corresponding image and mp3 sources
β”œβ”€β”€ pages // The app
β”œβ”€β”€ public // Audio and image files
β”œβ”€β”€ styles // CSS file
└── utils // Fullscreen mode


🀝 Contributing

Please feel free to open issues, pull requests, and refactor/fix! This is a living project and any help is welcome. Thanks!

To see current issues, check out the issues page.

To contribute, follow the steps below:

  1. Create a fork of this repo.
  2. Create a folder on your device and clone the forked repo into it.
git clone https://github.com/[YOUR-USERNAME-HERE]/lofi-music.git
  1. Create a feature branch.
git checkout -b new-feature
  1. Commit your changes.
git commit -m 'Added feature'
  1. Push to the branch.
git push origin new-feature
  1. Submit a pull request.

πŸ“ License

Distributed under the MIT License. See LICENSE for more information.