Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

- Nurgul Akhshatayeva
- Levi Sawatzky
- Sadman Shahriar Snigdho
- Axel Omar Sánchez Peralta
- MD Sakil Al Mahmud
- Aarsh Shah
171 changes: 0 additions & 171 deletions backend/backendcore/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion backend/backendcore/Procfile

This file was deleted.

7 changes: 0 additions & 7 deletions backend/backendcore/backendcore/settings/dev.py

This file was deleted.

4 changes: 0 additions & 4 deletions backend/backendcore/backendcore/settings/prod.py

This file was deleted.

51 changes: 0 additions & 51 deletions backend/backendcore/pyproject.toml

This file was deleted.

1 change: 0 additions & 1 deletion backend/backendcore/runtime.txt

This file was deleted.

3 changes: 0 additions & 3 deletions backend/backendcore/spotify/admin.py

This file was deleted.

3 changes: 0 additions & 3 deletions backend/backendcore/spotify/models.py

This file was deleted.

3 changes: 0 additions & 3 deletions backend/backendcore/spotify/views.py

This file was deleted.

1 change: 1 addition & 0 deletions backend/bandist/.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"access_token": "BQAQxoUhI6R1sxE5WV8txiNxdTEo85HfJV4D2Bhehzk48QvMgGMc0bk6U6zOYueb0m6V65TvMvEGL2NMC5_sf7O8wenvMif-j0814g4CVXfyjydU9l_q_omurmkzW2LN6Wll1vmt_mCTgfzYN4uUIFLKEfrMTuLQIZvi0MM2G2l04NqMeoNvCBp347sadivJP53Lva1xyyf8_qVl6wlLMWRB1cGpwhtc6EwGgYSB5vXM", "token_type": "Bearer", "expires_in": 3600, "scope": null, "expires_at": 1678397659, "refresh_token": "AQDkZpBKNSP_cnXt1lW7P_XYVaYTHACuj-ACOVkTvYqQqnGJoszFpLDpq_eGNv7fScs5ugWaapzqFa8AKrcyfK0fVDmzroN3JpyNqFmMPwL5n8lfRtJjrLm7dDQzFe1bCZw"}
File renamed without changes.
4 changes: 4 additions & 0 deletions backend/bandist/app/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from django.contrib import admin
from .models import User

admin.site.register(User)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class apiConfig(AppConfig):
class AppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'
name = 'app'
25 changes: 25 additions & 0 deletions backend/bandist/app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 4.1.4 on 2022-12-25 18:53

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('spotify_id', models.CharField(max_length=255, unique=True)),
('display_name', models.CharField(max_length=255)),
('city', models.CharField(max_length=255)),
('access_token', models.CharField(max_length=255)),
('refresh_token', models.CharField(max_length=255)),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 4.1.3 on 2023-03-05 04:22

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('app', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='user',
name='city',
),
migrations.AddField(
model_name='user',
name='favorite_artists',
field=models.TextField(blank=True, null=True),
),
migrations.AddField(
model_name='user',
name='location',
field=models.CharField(blank=True, max_length=50, null=True),
),
]
18 changes: 18 additions & 0 deletions backend/bandist/app/migrations/0003_rename_location_user_city.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.1.3 on 2023-03-05 04:23

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('app', '0002_remove_user_city_user_favorite_artists_user_location'),
]

operations = [
migrations.RenameField(
model_name='user',
old_name='location',
new_name='city',
),
]
12 changes: 12 additions & 0 deletions backend/bandist/app/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from django.db import models

class User(models.Model):
spotify_id = models.CharField(max_length=255, unique=True)
display_name = models.CharField(max_length=255)
city = models.CharField(max_length=50, blank=True, null=True)
access_token = models.CharField(max_length=255)
refresh_token = models.CharField(max_length=255)
favorite_artists = models.TextField(blank=True, null=True)

class Meta:
app_label = 'app'
25 changes: 25 additions & 0 deletions backend/bandist/app/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Concert Recommendation</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css">
</head>
<body class="bg-gray-200">
<nav class="bg-white p-4 flex justify-between items-center">
<a href="{% url 'home' %}" class="text-lg font-semibold text-gray-800">Concert Recommendation</a>
<div>
{% if user.is_authenticated %}
<a href="{% url 'logout' %}" class="text-sm text-gray-600">Logout</a>
{% else %}
<a href="{% url 'login' %}" class="text-sm text-gray-600">Login</a>
{% endif %}
</div>
</nav>
<div class="container mx-auto p-4">
{% block content %}
{% endblock %}
</div>
</body>
</html>
Loading