Skip to content

Commit 17f3a7e

Browse files
committed
chore: split backend and frontend into different repos
1 parent 56d4fea commit 17f3a7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+17
-16
lines changed

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
5-
/.pnp
4+
node_modules
5+
.pnp
66
.pnp.js
77

88
# testing
@@ -139,4 +139,5 @@ venv.bak/
139139
.mypy_cache/
140140

141141
# database sqlite
142-
db.sqlite3
142+
db.sqlite3
143+
frontend/node_modules

Procfile

-2
This file was deleted.

README.md

+2
File renamed without changes.

backend/asgi.py backend/app/asgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
ASGI config for backend project.
2+
ASGI config for app project.
33
44
It exposes the ASGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.asgi import get_asgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
1515

1616
application = get_asgi_application()

backend/settings.py backend/app/settings.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Django settings for backend project.
2+
Django settings for app project.
33
44
Generated by 'django-admin startproject' using Django 3.0.7.
55
@@ -46,7 +46,7 @@
4646
'drf_yasg',
4747

4848
# LOCAL
49-
'backend.todo',
49+
'app.todo',
5050
]
5151

5252
MIDDLEWARE = [
@@ -61,7 +61,7 @@
6161
'django.middleware.clickjacking.XFrameOptionsMiddleware',
6262
]
6363

64-
ROOT_URLCONF = 'backend.urls'
64+
ROOT_URLCONF = 'app.urls'
6565

6666
TEMPLATES = [
6767
{
@@ -79,7 +79,7 @@
7979
},
8080
]
8181

82-
WSGI_APPLICATION = 'backend.wsgi.application'
82+
WSGI_APPLICATION = 'app.wsgi.application'
8383

8484

8585
# Database
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

backend/todo/views.py backend/app/todo/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.contrib.auth.models import User, Group
22
from rest_framework import viewsets
3-
from backend.todo.serializers import UserSerializer, GroupSerializer
3+
from app.todo.serializers import UserSerializer, GroupSerializer
44
from rest_framework.response import Response
55

66
from .models import Task, Project

backend/urls.py backend/app/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
path('', index, name='index'),
2323
path('admin/', admin.site.urls),
2424
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
25-
path('api/v1/', include('backend.todo.urls')),
25+
path('api/v1/', include('app.todo.urls')),
2626
url(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'),
2727
url(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
2828
url(r'^redoc/$', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
File renamed without changes.

backend/wsgi.py backend/app/wsgi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
WSGI config for backend project.
2+
WSGI config for app project.
33
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
@@ -11,6 +11,6 @@
1111

1212
from django.core.wsgi import get_wsgi_application
1313

14-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
14+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
1515

1616
application = get_wsgi_application()

manage.py backend/manage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def main():
8-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
8+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
99
try:
1010
from django.core.management import execute_from_command_line
1111
except ImportError as exc:
File renamed without changes.
File renamed without changes.

package.json frontend/package.json

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/App.js frontend/src/App.js

File renamed without changes.

src/App.scss frontend/src/App.scss

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.js frontend/src/index.js

File renamed without changes.

0 commit comments

Comments
 (0)