-
Notifications
You must be signed in to change notification settings - Fork 1
Technical Installation Manual
Before you begin, ensure you have met the following requirements:
- Node.js and npm: Make sure you have Node.js and npm installed. You can download them from Node.js official website.
-
Angular CLI: Install Angular CLI globally if you haven't already:
npm install -g @angular/cli
First, clone the repository from GitHub to your local machine:
git clone https://github.com/your-username/echo-music-recommendation-app.git
cd echo-music-recommendation-app
Navigate to the project directory and install the necessary dependencies:
npm install
Create a .env file in the root directory of the project and add the following environment variables:
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
SPOTIFY_REDIRECT_URI=http://localhost:4200/callback
Replace your_spotify_client_id, your_spotify_client_secret, and your_spotify_redirect_uri with your actual Spotify API credentials.
To run the application locally, use the Angular CLI:
ng serve
Open your browser and navigate to http://localhost:4200/.
Here's a brief overview of the project's directory structure:
echo-music-recommendation-app/
├── src/
│ ├── app/
│ │ ├── components/
│ │ │ ├── info-bar/
│ │ │ ├── artist-profile/
│ │ │ ├── side-bar/
│ │ │ ├── song-view/
│ │ │ └── moods/
│ │ ├── services/
│ │ ├── models/
│ │ └── app.module.ts
│ ├── assets/
│ ├── environments/
│ └── index.html
├── .env
├── angular.json
├── package.json
└── README.md
Solution: Ensure that all dependencies are installed correctly. Run npm install again to make sure.
Solution: Double-check your Spotify API credentials in the .env file and ensure they are correct. Make sure the redirect URI matches what is configured in your Spotify developer dashboard.
Before starting the installation process, ensure the following tools and accounts are set up:
- Azure Account: Ensure you have an active Azure subscription.
- Azure CLI: Installed and configured on your local machine.
- Python 3.8 or later: The AI module is compatible with Python 3.8+.
- Visual Studio Code: Recommended IDE for Python development.
- Azure Functions Core Tools: To develop and test the Function App locally.
- Git: To manage source code.
First, clone the repository from GitHub to your local machine:
git clone https://github.com/your-username/echo-music-recommendation-app.git
cd echo-music-recommendation-app/AI/Interface
- Login to Azure CLI:
az login
- Create a Resource Group:
az group create --name <ResourceGroupName> --location <Region>
- Create a Storage Account:
az storage account create --name <StorageAccountName> --location <Region> --resource-group <ResourceGroupName> --sku Standard_LRS
- Create a Function App:
az functionapp create --resource-group <ResourceGroupName> --consumption-plan-location <Region> --runtime python --functions-version 4 --name <FunctionAppName> --storage-account <StorageAccountName>
-
Install Azure Functions Core Tools:
- Download and install from here
- Install Required Python Packages:
pip install azure-functions
- Initialise a Local Project:
func init <ProjectName> --python
- Create a New Function:
func new --name <FunctionName> --template "HTTP trigger" --authlevel "function"
- Install Dependencies Locally:
pip install -r requirements.txt
- Test the Function Locally:
func start
- Deploy the Function App to Azure:
func azure functionapp publish <FunctionAppName>
We welcome contributions! Follow these steps to contribute to the project:
- Fork the repository.
- Create a new branch (git checkout -b feature/your-feature-name).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature/your-feature-name).
- Open a pull request.