-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-spotify-app.sh
More file actions
executable file
·41 lines (31 loc) · 1.3 KB
/
setup-spotify-app.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Spotify Genre Organizer Setup Script
# This script creates the solution and project structure
set -e # Exit on error
echo "Creating Spotify Genre Organizer solution..."
# Create solution
dotnet new sln -n SpotifyGenreOrganizer
# Create console application project
dotnet new console -n SpotifyGenreOrganizer -o src/SpotifyGenreOrganizer
# Add project to solution
dotnet sln SpotifyGenreOrganizer.sln add src/SpotifyGenreOrganizer/SpotifyGenreOrganizer.csproj
# Navigate to project directory
cd src/SpotifyGenreOrganizer
# Add required NuGet packages
echo "Adding NuGet packages..."
dotnet add package SpotifyAPI.Web
dotnet add package SpotifyAPI.Web.Auth
dotnet add package Microsoft.Extensions.Configuration
dotnet add package Microsoft.Extensions.Configuration.Json
dotnet add package Microsoft.Extensions.Configuration.Binder
dotnet add package Microsoft.Extensions.Configuration.EnvironmentVariables
dotnet add package Newtonsoft.Json
# Return to root directory
cd ../..
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Create a .env or appsettings.json file with your Spotify credentials"
echo "2. Run 'dotnet restore' to ensure all packages are installed"
echo "3. Run 'dotnet build' to build the solution"
echo "4. Run 'dotnet run --project src/SpotifyGenreOrganizer' to start the app"