Setup Steps
This chapter outlines the step-by-step process for setting up your SWAIN backend, covering project creation, connection setup, schema synchronization, authentication configuration, user mapping, social authentication, authorization, and API deployment.
Create Project
https://drive.google.com/file/d/1_rwM1z95J_GWs33ICc4Yfu7hroKv1vXy/view?usp=drive_linkGo to Proj...
Create Connection
Navigate to Project → Connections → New Connection in the SWAIN dashboard. Fill in the connect...
Sync Schema
Open your database connection and click Sync Schema to scan your schema. SWAIN will import met...
Authentication Settings
General Security: Set Access Token Expiry (e.g., 1h) to control how long JWT access tokens r...
User Mapping
Map User Table: Identify which table in your database stores user accounts. Map the key col...
Social Auth
Enable social authentication so users can log in using providers like Google or GitHub. Regist...
Authorization
Go to the Authorization section in your project to manage roles and permissions. Create Roles ...
Deploy API
Once your project is configured (schema synced, authentication set up, user mapping, social aut...