Skip to content

Commit

Permalink
https -> http
Browse files Browse the repository at this point in the history
  • Loading branch information
semant1cs committed Nov 17, 2023
1 parent b9999fd commit 4638332
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 25 deletions.
4 changes: 2 additions & 2 deletions backend/docker-launch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
alembic upgrade head
alembic upgrade 9a94a7ad2790
cd src || exit
gunicorn main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:"$BACK_APP_PORT" --timeout 300
gunicorn main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:"$BACK_APP_PORT" --timeout 300
91 changes: 76 additions & 15 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.6.2",
"gsap": "^3.12.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"mobx": "^6.11.0",
"mobx-react-lite": "^4.0.5",
"mobx-state-tree": "^5.3.0",
"gsap": "^3.12.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0",
"sass": "^1.69.5",
"serve": "^14.2.1",
"sort-by": "^1.2.0"
"sort-by": "^0.0.2"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
13 changes: 7 additions & 6 deletions frontend/src/components/authentication/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ const Authentication: React.FC = observer(() => {


const signIn = () => {
axios.post("https://localhost:8000/auth/register/", {
username: "adasdasdasd",
email: "asdasdsa@gmail.com",
password: "asdasdasdsadsa"
}, {withCredentials: false}).catch(() => console.log(1))
authStore.signInUser()
axios.post("http://localhost:8000/auth/login", {
username: "user@example.com",
password: "ashdjashdjsahjdhsadsa",
})
.then(() => authStore.signInUser())
.catch((reason) => alert(reason))

navigateTo('/map')
}

Expand Down

0 comments on commit 4638332

Please sign in to comment.