App for Square Unboxed Hackathon
Go to https://developer.squareup.com/apps/
Get your Sandbox Application ID
and Sandbox Access Token
.
Set your environment variables as exportable variables in a file called .env
.
Under development but at the moment Auth0 is being used. Creating an account is needed, but a custom authentication server will likely be used.
MongoDB is used as a database. A password should be randomly created. We suggest reusing passwords generated in Bitwarden, pwgen
or any other password generator.
docker-compose build
docker-compose up
docker-compose up
docker-compose down
docker-compose up --build
Go to your browser and enter http://localhost:5000
in the URL. Any other port can be used instead if 5000 is already being used. See the default in docker-compose.yml
.
After cloning the main repository we need to clone the backend configured as a submodule:
git clone [email protected]:alexandre-k/square-booking-app.git
cd square-booking-app
git submodule update --init
Example:
docker build -t booking-server:[TAG] -f Dockerfile.serve .
docker build -t booking-api:[TAG] -f Dockerfile .
docker run -d -p 8000:8000 booking-server:[TAG]
docker run -d -p 80:80 -p 443:443 booking-api:[TAG]