diff --git a/README.md b/README.md index 90a1741..e8a2cf0 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,19 @@ $ > python manage.py migrate $ > python manage.py createsuperuser --email admin@example.com --username admin $ > exit # You are now back in your machine bash -$ docker-compose down && docker-compose up -d +``` + +# Running (Docker) + +```sh # Containers will all start +$ docker-compose down && docker-compose up -d +``` + +_backend only_ + +```sh +$ docker-compose down && docker-compose -f docker-compose.backend.yml up -d ``` # Setup (Not Docker) diff --git a/frontend/package.json b/frontend/package.json index 9cdbfb1..fdb60fb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,7 +2,6 @@ "name": "frontend", "version": "0.1.0", "private": true, - "proxy": "http://localhost:8000", "dependencies": { "@dank-inc/data-buddy": "^0.2.0", "@testing-library/react": "^11.1.0", diff --git a/frontend/src/pages/Login/index.tsx b/frontend/src/pages/Login/index.tsx index d4decf0..2805ac2 100644 --- a/frontend/src/pages/Login/index.tsx +++ b/frontend/src/pages/Login/index.tsx @@ -15,7 +15,7 @@ export const Login = () => { const handleFinish = async ({ username, password }: FormValues) => { try { - const res = await appContext.post('/dj-rest-auth/login', { + const res = await appContext.post('/dj-rest-auth/login/', { username, password, }) diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 48e341a..0000000 --- a/package-lock.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lockfileVersion": 1 -}