下载软件
首先,去gitHub下载该项目的release,尽量下载最新版本:https://github.com/edwardorchis/finance/releases。
解压压缩包
压缩包里面目录如下:
release
|-client
|-FinanceClient.exe
|-FinanceClient.exe.config
|-...
|-server
|-Finance.exe
|-Finance.exe.config
|-FinanceConsole.exe
|-...
|-...
其中,Finance.exe为服务端主程序,FinanceConsole.exe为账套管理程序,FinanceClient.exe为客户端主程序。客户端和服务端可以分开部署。
Finance.exe.config 中的connectionStrings配置为sqlserver链接,需要根据自己的环境进行配置。server_url为服务端提供服务的对外绑定的http地址,默认端口:9000,可以根据自己环境修改。
FinaceClient.exe.config中的service_url需要和Finance.exe.config 中的server_url一致。
在sqlserver新建数据库
在sqlserver中新建一个名为finance(与Finance.exe.config 中的connectionStrings中的Initial Catalog一致)的空数据库。不需要建表和其他。
新建账套
运行FinanceConsole.exe并登录,默认用户名:admin,密码:123456。登录后,默认会新建一个演示账套finance_demo。
运行服务端
运行Finance.exe,注意不要让命令行获得焦点。获得焦点后会阻塞消息,导致客户端登录不成功。
运行客户端
运行FinanceClient.exe并登录,演示账套默认用户名:admin,密码:123456。
enjoy!