This guide helps you get started developing APITable.
Make sure you have the following dependencies and programming languages installed before setting up your developer environment:
git- docker
- docker-compose v2
make
If you are using macOS or Linux.
We recommend install programming language with SDK manager sdkman and nvm.
# quick install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# quick install sdkman
curl -s "https://get.sdkman.io" | bash
# install nodejs
nvm install 16.15.0 && nvm use 16.15.0 && corepack enable
# install java development kit
sdk env install
# install rust toolchain
curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile minimal -y && source "$HOME/.cargo/env"We recommend using Homebrew for installing any missing dependencies:
## necessary required
brew install git
brew install --cask docker
brew install makeOn CentOS / RHEL or other Linux distribution with yum
sudo yum install git
sudo yum install makeOn Ubuntu / Debian or other Linux distribution with apt
sudo apt update
sudo apt install git
sudo apt install makeIf you are running APITable on Windows 10/11, we recommend installing Docker Desktop on Windows, Ubuntu on WSL and Windows Terminal, You can learn more about Windows Subsystem for Linux (WSL) in the official site.
Install missing dependencies on Ubuntu using apt:
sudo apt update
sudo apt install git
sudo apt install makeWe use make as our centric build tool entry that drives other build tool like gradle / npm / yarn.
So you can just input make command and see all build commands:
makeAPITable consists of 3 processes:
- backend-server
- room-server
- web-server
To start the development environment locally, run these commands:
# start databases in dockers
make dataenv
# install dependencies
make install
#start backend-server
make run # enter 1
# and then switch to a new terminal
# start room-server
make run # enter 2
# and then switch to a new terminal
# start web-server
make run # enter 3
We recommend you use Visual Studio Code or Intellij IDEA for your IDE.
APITable have prepared these two IDE's debug configs.
Just open APITable's root directory with IDE.
