doandung2701 / testfront-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎵 Echo

Build Status

A music app made with React + Redux + Nodejs demo video: (https://www.youtube.com/watch?v=knqfJlnTjtQ)

image

image

Features

  • login to create and listen to your playlists
  • download song when you are logged in
  • lazy, paginated fetching
  • player play/stop/forward/backward track
  • search tracks by name and artist

Installation

To run the app with Node.js and MongoDB

This app will fetch tracks from an external api, so there is no need for a database to store tracks, but we still need one for creating user's playlists

Install and start MongoDB (https://docs.mongodb.org/manual/installation).

Install Node.js (http://nodejs.org). Any version above 6.0 works fine

Open .env and adjust the MONGODB_URI to your MongoDB server name (localhost normally works if you're running locally).

  1. Run npm install.

  2. Run npm run dev:client to start the frontend server

Wait for the build process to complete

carbon

  1. Run npm run dev:server to start the api server

Navigate to http://localhost:8000 in your browser to explore the app

Build the app

  • Build manually
 $ npm start

Or

  • Build with Docker Compose
$ docker-compose build
$ docker-compose up

After building the app, frontend and backend servers will be merged into a single server and be available at http://localhost:3000

About


Languages

Language:JavaScript 63.1%Language:CSS 36.7%Language:HTML 0.1%Language:Dockerfile 0.1%