A beautiful, Single Page App that displays your currently playing, and most played music's album art using the Spotify API
- PostgreSQL
- Databases required for each environment:
- DEV_Herodorus
- TEST_Herodorus
- STAGING_Herodorus
- PRODUCITON_Herodorus
- Databases required for each environment:
This project uses DOTENV in order to manage environment parameters. Create a file titled '.env' in the backend directory and fill the following parameters:
// Database Config
DEV_DATABASE_URL = 'postgres://[USERNAME]:[PASSWORD]@localhost:5432/DEV_Herodorus'
TEST_DATABASE_URL = 'postgres://[USERNAME]:[PASSWORD]@localhost:5432/TEST_Herodorus'
STAGING_DATABASE_URL = 'postgres://[USERNAME]:[PASSWORD]@localhost:5432/STAGING_Herodorus'
PRODUCTION_DATABASE_URL = 'postgres://[USERNAME]:[PASSWORD]@localhost:5432/PRODUCITON_Herodorus'
SEEDS_DIR
// Spotify Configuration
SPOTIFY_CLIENT_ID = ''
SPOTIFY_CLIENT_SECRET = ''
SPOTIFY_CALLBACK_URL = ''
There are two projects reall at hand here, both the Backend and FrontEnd need their own dependencies installed by running the following in their respective root directories:
npm install
Once the required databases have been set up, they need to be initialized using KNEX. From the bakcend directory, run the following:
npx knex
Ensure that you're running the installation command in both the frontend and backend folders; this is two (2) seperate applications.
When generating frontend components, Generate-React-CLI should be used to maintain the consistency of the directory structure:
//Generate a Component
npx generate-react-cli component COMPONENT_NAME
//Generate a Page
npx generate-react-cli component PAGE_NAME --type=page
👤 Sam Herring
Give a ⭐️ if this project helped you!
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator