Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xjh22222228/tomato-work-server

🍅 Tomato Work Server for Egg.js
https://github.com/xjh22222228/tomato-work-server

egg egg-admin egg-project eggplugin mysql mysql2 passport passport-github sequelize

Last synced: about 21 hours ago
JSON representation

🍅 Tomato Work Server for Egg.js

Awesome Lists containing this project

README

        





Tomato Work 个人事务管理系统



Server

Stars


## Built with

- [Node.js >= 18](https://nodejs.org/en/)
- [Egg.js](https://eggjs.org/zh-cn/intro/)
- [MySQL](https://www.mysql.com/)
- [Sequelize](https://github.com/sequelize/sequelize)
- [js-ant](https://github.com/xjh22222228/js-ant)

## MySQL Setup

Simple MySQL install and config

Run file `sql.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

```bash
# 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](https://opensource.org/licenses/MIT)