Skip to content

🎼 This project aims to mimic the Front end part of Spotify web player using Vue js.

Notifications You must be signed in to change notification settings

EmanOthman21/Symphonia-FE

 
 

Repository files navigation

Symphonia FE 🎵

A Project that mimics the FrontEnd part of Spotify Web player.


Main commands for running the Project

Project setup & installing packages

npm install

Compiles and hot-reloads for development

npm run serve

Runs the project by default on port:8080

Compiles and minifies for production

npm run build

The project is found in a /dist folder under the same directory after building

Run your unit tests and generating coverage report

npm run test:unit

This command runs all the unit tests and generates a coverage report index.html including details about all components The generated coverage report is found in the project directory under /coverage/Icov-report

Generate Functional documentation report

npm run styleguide:build

To generate the report under /styleguide folder in the project directory

Lints and fixes files

npm run lint --fix

Runing on Mock server

For mocking we use Mirage.js The server is established in development environment automatically and runs on the same port as the frontend code where it intercepts all the requests and api calls and mocks their responses through defined routes

Runing on real server from localhost (for debugging temporarily)

some changes should be made in the development env :

  1. prevent mirage from runing by changing the condition in main.js from development to production
  if (process.env.NODE_ENV === "production") {
  makeServer();
}
  1. define the axios base url to direct the calls to the deployed back end server in main.js
axios.defaults.baseURL = "https://thesymphonia.ddns.net/api";

Runing on real server

When deployed in a Production environment, the Mirage server is not established and it doesn't intercept the calls to the api The publicPath is taken form the domain name where the project runs

Customize configuration

See Configuration Reference.

About

🎼 This project aims to mimic the Front end part of Spotify web player using Vue js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 47.8%
  • JavaScript 46.5%
  • CSS 5.6%
  • HTML 0.1%