Skip to content

Revanth2002/Square-Server

Repository files navigation

Magic Subscribe

img

Magic Subscribe Server

Clone this server repo and run the following commands

git clone https://github.com/Revanth2002/Square-Server.git
cd Square-Server

Change 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 token

To 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:8000


Magic Subscribe Client

Clone this client repo and run the following commands

git clone https://github.com/ndrohith09/MagicSubscribe-Client.git
cd MagicSubscribe-Client

Install the dependencies and run the following command

yarn install
 (or)
npm install

Change 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

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •