This document outlines the setup process for the Superposition Platform
.
- Install Rust using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- Install docker
- make sure you have dependencies like libpq, openssl, libiconv,etc installed
- make sure
make
command is installed- Linux
sudo apt-get install build-essential
- MacOS
xcode-select --install
- Linux
- Clone the repository
git clone https://github.com/juspay/superposition.git cd superposition
- Start docker daemon
- Linux
sudo systemctl start docker
- MacOS
open --background -a Docker
- Linux
- setup database and envs
make setup
- Run Superposition
make run
- Install docker
- make sure you have dependencies like libpq, openssl, libiconv,etc installed
- Clone the repository
git clone https://github.com/juspay/superposition.git cd superposition
- run
nix develop
- Start docker daemon
open --background -a Docker
- setup database and envs
make setup
- Run Superposition
make run
curl --location 'http://localhost:8080/health'
# Expected Response : "Health is good :D"
make tenant TENANT=<tenant_name>
# Add the tenant in the TENANTS env variable. For example TENANTS=dev,test,<tenant_name>
# Stop the server and run:
make run
The following targets are available
db-init
: Initializes the database.setup
: Sets up the development environment.kill
: Stops all running containers.run
: Runs the application in development mode.ci-test
: Runs unit tests.ci-build
: Builds the Docker image.ci-push
: Pushes the Docker image to a registry.registry-login
: Logs in to a Docker registry.validate-aws-connection
: Validates the AWS connection.validate-psql-connection
: Validates the PostgreSQL connection.
Variable | Description | Default Value |
---|---|---|
ENABLE_TENANT_AND_SCOPE |
Enables multi-tenancy | true |
TENANTS |
List of Tenants | dev,test |
DOCKER_DNS |
DNS server to use within the container | localhost |