Running Locally
We support Mac primarily and linux with best-efforts.
Setup
This takes about 30 mins to download ~2gb of tools on a fresh mac on a 12mbps connection.
Open Terminal (CMD + Space, type Terminal)
Install xcode command line tools.
xcode-select --install
Create or just cd into your development folder
cd ~ mkdir development cd development
Checkout this repository
git clone https://github.com/cadbox1/glue-stack.git cd glue-stack
Run the setup bash script
sh setup.sh
You can open the bash script to find out but it:
installs Homebrew
installs Java
installs Docker
installs Maven
installs Node
installs Yarn
Hit Enter when you're prompted. You will need to enter your password for both Homebrew and Docker. Type it in but be aware that password characters aren't displayed in terminal. You'll need to enter your password again when Docker first opens.
Running
Create a new terminal tab (CMD + t)
Start the MySQL database using
docker-compose up
Create a new terminal tab (CMD + t)
The next tab will run the api (backend).
cd api mvn spring-boot:run
This will start our Spring Boot Java application which will setup the tables in our database using a tool called Flyway.
The next tab will run our ui (frontend) development server. You won't need this in production.
cd ui
yarn
yarn start
This will open a browser window to our application. Make sure both servers are started before your start playing with it.
Signup your organisation!
To stop any of the components hit
control + c
in the tab. This is how to stop running terminal programs.
Now that you've got it running perhaps you'd like to try developing glue-stack?
Last updated