Clone this server repo and run the following commands
git clone https://github.com/Revanth2002/Square-Server.git
cd Square-ServerChange the secrets in the settings.py file
BASE_URL = "http://localhost:8000" # your server url
SQUARE_APP_ID= "sandbox-****-***" # your square app id
SQUARE_APP_SECRET = "***" # your square app secret
SQUARE_API_URL = "https://connect.squareupsandbox.com"
SQUARE_SANDBOX_TOKEN = "*****" # your square sandbox tokenTo run the server you need to install the requirements and run the following command
pip install -r requirements.txt
python3 manage.py runserver 0.0.0.0:8000Clone this client repo and run the following commands
git clone https://github.com/ndrohith09/MagicSubscribe-Client.git
cd MagicSubscribe-ClientInstall the dependencies and run the following command
yarn install
(or)
npm installChange the api baseURL according to your server url in the api.jsx file
baseURL : 'https://0.0.0.0:8000/api/v1/',Start the client
yarn dev
(or)
npm run dev