GithubHelp home page GithubHelp logo

shaheenjawadi / lofi-music Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riccardobertolini/lofi-music

0.0 0.0 0.0 138.24 MB

Create your music while working/studying

Home Page: https://www.lofimusic.dev

License: MIT License

JavaScript 5.85% TypeScript 93.26% CSS 0.89%

lofi-music's Introduction

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 ๐Ÿคญ.

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

  • Next
  • React
  • Typescript
  • Styled Components
  • Components/Layout based
  • Prettier for better readability

โœ… 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

  • To create a sound mix, click on an image to add it to your active sounds.
  • To adjust the volume of an individual sound, drag the slider underneath the sound.
  • To adjust the volume of all active sounds, drag the slider at the bottom of the screen under Sounds active: .
  • To stop all sounds, click Stop all.
  • To enter fullscreen mode, click the window icon at the top left of the icon bar. To exit, click the icon again.
  • To get a random mix of sounds, click the arrow icon in the icon bar.
  • To change the background colors of the app, click the gear icon in the icon bar and select a color.
  • To get a random mix of sounds based on your mood, click the face icon in the icon bar and select your mood.

๐Ÿ”ง 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.

lofi-music's People

Contributors

dependabot[bot] avatar saikoaizen avatar hughlaufenhoft avatar david-promo avatar riccardobertolini avatar zeeshan7791 avatar miikisalminen avatar ca3gapma avatar rayhanferdous avatar afaqak avatar amiarham avatar shmidtelson avatar egorii87 avatar davidkozdra avatar grbmax avatar kristenking avatar evaeia avatar chandu avatar muhammadfaheemakram avatar subxx avatar shehzad-hash avatar sufyan-siddiq avatar tayyabarif 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.