Skip to content

xjh22222228/tomato-work-server

Repository files navigation


Tomato Work 个人事务管理系统

Server Stars

Built with

MySQL Setup

Simple MySQL install and config

Run file sql.sql

# Install mysql
sudo apt install mysql-server
systemctl status mysql.service

# Adjusting User Authentication
sudo mysql
mysql > SELECT user,authentication_string,plugin,host FROM mysql.user;
mysql > ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

# Create a database for tomato work
mysql > CREATE DATABASE tomato_work

# Later you can login to mysql via
mysql -u root -p

Build Setup

启动项目之前请配置数据库信息 config/config.default.js

# Download
git clone --depth=1 https://github.com/xjh22222228/tomato-work-server.git

# Install
pnpm i

# Port: 7003
npm run dev

# Build start
npm run start

License

MIT