Skip to content

yashshah/Instant-Music-Downloader

Repository files navigation

Instant Music Downloader

Minimalistic website to play any song and download mp3 with one click!

alt tag

To run

  • You'll need to have git and node installed in your system.
  • Fork and clone the project:
> $ git clone https://github.com/yashshah/Instant-Music-Downloader
  • Then install the dependencies:
> $ npm install
  • Run development server:
> $ npm start

Open the web browser to http://localhost:8888/

To build production package

> $ npm run build

Nginx Config

Here is the suggested Nginx config:

server {
	# ... root and other options

	gzip on;
	gzip_http_version 1.1;
	gzip_types text/plain text/css text/xml application/javascript image/svg+xml;

	location ~ \.html?$ {
		expires 1d;
	}

	location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {
		access_log off;
		log_not_found off;
		expires max;
	}
}

Eslint

There is a .eslint.yaml config for eslint ready with React plugin. To use it, you need to install additional dependencies though:

> npm install --save-dev eslint eslint-plugin-react

To do the actual linting, run:

> npm run lint