Menu Close

_mp333-music-spa

_mp333-music-spa

Fullstack Music Web Application

Frontend

Home Page:

image

Playlist Page:

image

Backend

/api Documentation:

image

Cloning this repo

  1. To get the sample code from GitHub, use the git clone command to get a local copy of the remote repository. To clone the sample code, run the following command:
    $ git clone https://github.com/sord-dev/_mp333-music-spa.git
  1. Init Submodules (nested repos)

    $ git submodule init
    $ git submodule update
  1. Install dependencies for both client AND server side
  • Client Side

    $ cd mp333-music-app-react
    $ npm i
  • Server Side

    $ cd _mp333-server
    $ npm i
  1. In /_mp333-server create a .env file containing these variables:

    PORT= server port eg 3000
    SESSION_SECRET= secret for express sessions
    
    DATABASE_URL= a local database url connection string (https://www.postgresql.org/download/windows/) || (https://customer.elephantsql.com/instance/create NOTE ElephantSQL + OnRender db instances have issues migrating)
    SHADOW_DATABASE_URL = another local database url connection string (for prisma testing)
View Source Code
Posted in Development