Finteligo
Advanced AI-powered fintech solution
Requirements
Before you get started, ensure you have the following installed:
- Node.js
- pnpm
- Go
- Air
- SQLite
Quick Start
-
Set Up Environment Variables
Copy the example environment file and modify it as needed:
cp .env.example .env
-
Install Dependencies
Run the following commands to install the necessary dependencies:
pnpm install
go get -u all
-
Run the Application
Start the development server in one terminal:
pnpm dev
Then, in another terminal, run:
air
Building the Project
To build the project, use:
pnpm build
go build -o finteligo ./main.go
Running the Executable
After building, you can run the application with:
./finteligo
Systemd Service
To run the application as a systemd service, create a new service file:
nano /etc/systemd/system/finteligo.service
Then, add the following content:
[Unit]
Description=Finteligo Service
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Restart=on-failure
RestartSec=5s
WorkingDirectory=/path/to/finteligo
ExecStart=/path/to/finteligo/finteligo
[Install]
WantedBy=multi-user.target
Finally, start and enable the service:
systemctl daemon-reload
systemctl start finteligo
systemctl enable finteligo