Build From Source
Prerequisites
Before installation, ensure you have:
- Read the System Requirements
- Set up PostgreSQL and NATS (required for storage and real-time synchronization)
- Flutter installed on your system (required for building the Flutter web app)
Building from Source
If you prefer to build from source:
# Clone the repository
git clone https://github.com/owlistic-notes/owlistic.git
cd owlistic
Step 1: Building the server
# Build the server
cd src/backend
go build -o owlistic cmd/main.go
Step 2: Building the Flutter Web UI
To build the Flutter web application:
# Navigate to the app directory
cd src/frontend
# Ensure Flutter dependencies are installed
flutter pub get
This will generate the web artifacts in the build/web
directory, which can be deployed to any web server.
Step 3: Configure Environment Variables
Set the required environment variables:
export APP_ORIGINS=http://localhost*
export DB_HOST=localhost
export DB_PORT=5432
export DB_USER=admin
export DB_PASSWORD=admin
export DB_NAME=postgres
export BROKER_ADDRESS=localhost:9092
Step 4: Run the Application
# Start the server application
cd src/backend
./owlistic
# Run the flutter app
cd src/frontend
flutter run -d <chrome|linux|macos|ios|android>
Post-Installation
After installation:
- The server should be running on port 8080
- The app should be accessible on port 80
- Visit
http://your-server
to access the web interface
Troubleshooting
If you encounter any issues during installation, please refer to the Troubleshooting section for assistance.