This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Xác định environment | |
FROM node:14-alpine3.17 | |
#Chỉ định thư mục root | |
WORKDIR /app | |
#Copy từ code từ local vào docker image | |
COPY . /app | |
#Chuẩn bị các dependencies cần thiết |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VITE_BANK_ACCOUNT = 101874750132 | |
VITE_BANK_NAME = Vietinbank | |
VITE_PAYMENT_PREFIX=DH | |
VITE_API_URL=http://localhost:3000 | |
VITE_SOCKET_URL=http://localhost:3003/payment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useEffect } from 'react' | |
import { useLocation } from 'react-router' | |
const Oauth = () => { | |
const location = useLocation() | |
const [error, setError] = useState<string | null>(null) | |
useEffect(() => { | |
const searchParams = new URLSearchParams(location.search) | |
const accessToken = searchParams.get('accessToken') |