irongit

Django + Next + Postgres + Docker + Nginx

sync api

FIRST_NAME LAST_NAMEauthored
parent bf96e87commit af59dd51a7b8bb50d3b16ef084ce4c501238201eBrowse files

4 files changed, +11 -4

+1-0backend/backend/settings.py
@@ -40,6 +40,7 @@ INSTALLED_APPS = [
4040 'django.contrib.sessions',
4141 'django.contrib.messages',
4242 'django.contrib.staticfiles',
43+ 'rest_framework',
4344 'backend',
4445 'api',
4546 ]
+1-0backend/backend/urls.py
@@ -18,4 +18,5 @@ from django.urls import path, include
1818
1919 urlpatterns = [
2020 path('admin/', admin.site.urls),
21+ path('api/', include('api.urls'))
2122 ]
+3-4backend/requirements.txt
@@ -1,11 +1,10 @@
11 asgiref==3.6.0
2-click==8.1.3
3-colorama==0.4.6
42 Django==4.1.5
53 djangorestframework==3.14.0
6-h11==0.14.0
74 psycopg2-binary==2.9.5
5+python-dotenv==0.21.0
86 pytz==2022.7
7+PyYAML==6.0
98 sqlparse==0.4.3
109 tzdata==2022.7
11-uvicorn==0.20.0
10+uritemplate==4.1.1
+6-0dev.sh
@@ -0,0 +1,6 @@
1+#!/bin/bash
2+
3+source ./venv/**/activate
4+
5+cd backend && python manage.py runserver &
6+cd frontend && npm run dev