Tomato Work Personal Affairs Management System
- Node >= 14.16.0
- Node Version Release
- Egg Application - Documentation
- Egg Application - Github
- Egg Application - NPM
- Microsoft MySQL
- Node Sequelize - Github
- Node Sequelize - NPM
- Node Version Manager - Github
- Node Version Manager (Shell Script) - Github
Simple MySQL install and config
- Create New MySQL Database using MySQL Workbench
- Create New MySQL Database using SSH Command Line Interface
# 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_worker
mysql > CREATE DATABASE IF NOT EXISTS sales_db;
mysql > CREATE DATABASE sales_db;
# Later you can login to mysql via
mysql -u root -p
# Download
> git clone --depth=1 https://github.com/minhthinhls/Egg-App-Boilerplate.git
# Install
> npm install
# Generate Typescript on 'app/extend/types/(Controller|Service|Model).d.ts'
> npm run build
# Locking all files declared on 'app/utils/file/read-only/index.ts' to Read-Only Mode.
> npm run lock
# Dev-Mode & Hot-Reload & Port: 7003
> npm run dev
# Build Production & Start
> npm run compile
> npm run start
Using Postman
URL: http://localhost:7003/api/user/register
BODY:
{
"loginName": "test",
"userName": "Test",
"password": "123456",
"role": 1
}