updating readme, removing proxy, quick fix

This commit is contained in:
Elijah Lucian 2021-07-15 17:27:58 -06:00
parent f216adb3b2
commit 617435ae18
4 changed files with 13 additions and 6 deletions

View File

@ -14,8 +14,19 @@ $ > python manage.py migrate
$ > python manage.py createsuperuser --email admin@example.com --username admin $ > python manage.py createsuperuser --email admin@example.com --username admin
$ > exit $ > exit
# You are now back in your machine bash # You are now back in your machine bash
$ docker-compose down && docker-compose up -d ```
# Running (Docker)
```sh
# Containers will all start # 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) # Setup (Not Docker)

View File

@ -2,7 +2,6 @@
"name": "frontend", "name": "frontend",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"proxy": "http://localhost:8000",
"dependencies": { "dependencies": {
"@dank-inc/data-buddy": "^0.2.0", "@dank-inc/data-buddy": "^0.2.0",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",

View File

@ -15,7 +15,7 @@ export const Login = () => {
const handleFinish = async ({ username, password }: FormValues) => { const handleFinish = async ({ username, password }: FormValues) => {
try { try {
const res = await appContext.post('/dj-rest-auth/login', { const res = await appContext.post('/dj-rest-auth/login/', {
username, username,
password, password,
}) })

3
package-lock.json generated
View File

@ -1,3 +0,0 @@
{
"lockfileVersion": 1
}