_mp333-music-spa
Fullstack Music Web Application
Frontend
Home Page:
Playlist Page:
Backend
/api Documentation:
Cloning this repo
- 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
- Init Submodules (nested repos)
$ git submodule init
$ git submodule update
- Install dependencies for both client AND server side
- Client Side
$ cd mp333-music-app-react
$ npm i
- Server Side
$ cd _mp333-server
$ npm i
- 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)