Developer Init Setup Guide
[!NOTE] This guide covers manual developer setup and initialization directly from the source code. If you are a retailer or end-user looking to deploy in a production store environment, please use our automated installers and follow the Retailer Installation & Update Guide instead.
What You Need (Developer Environment)
- Flutter SDK
- Node.js
18+ - npm
- PostgreSQL
- Git
Required Files (Backend Configuration)
Make sure these files exist in backend/ before starting the server:
license.keyconfig.encsysConfig.encclient.json
If these files are missing, the backend may boot in recovery mode or fail health checks.
First-Time Developer Setup (Manual)
- Clone the repository.
- Install Flutter packages:
flutter pub get
- Install backend packages:
cd backend
npm install
- Start PostgreSQL.
- Start the backend:
cd backend
npm start
- Start the Flutter app:
flutter run
Initialization Flow
When the backend starts, it generally:
- Loads
.envfrombackend/.envif present. - Checks license validity.
- Loads encrypted config.
- Waits for PostgreSQL.
- Ensures the database exists.
- Runs migrations.
- Syncs Sequelize models.
- Starts background jobs.
- Mounts the API routes.
Client Configuration
The Flutter client reads server_config.json from the current working directory.
Example:
{
"baseUrl": "http://127.0.0.1:3000",
"outlets": ["OUTLET202604212159"]
}
Default backend URL:
http://127.0.0.1:3000
Health Check
Use this endpoint to confirm the backend is running and healthy:
GET /health
Recovery Notes
The project includes recovery and setup endpoints under /api/public for:
- OTP verification
- setup recovery
- config recovery
- reinstall triggering
- password recovery
After Setup
Once the server is running and the client can connect, users can log in and begin normal operations.