DevTools
Backend
mkdir franky && cd franky
git init
go mod init github.com/Lysander66/franky
mkdir app qlib
dependencies
go get -u -v github.com/gogf/gf/v2
go get -u gopkg.in/natefinch/lumberjack.v2
go get -u github.com/rs/zerolog/log
go get github.com/spf13/viper
go get -u github.com/gin-gonic/gin
go get github.com/gin-contrib/cors
go get github.com/gin-contrib/pprof
go get github.com/gorilla/websocket
go get gorm.io/gorm
go get gorm.io/driver/postgres
go get github.com/redis/go-redis/v9
echo "# franky" >> README.md
git remote add origin git@github.com:Lysander66/franky.git
git branch -M main
git push -u origin main
Frontend
yarn create react-app sunny
cd sunny
yarn add react-router-dom antd source-map-explorer
yarn add react-player vanilla-jsoneditor
yarn add css-doodle
yarn add -D sass
yarn add -D @craco/craco
- craco
@ 别名路径 webpack 中配置 jsconfig.json 配置文件 react-scripts start 改成 craco start
jsconfig.json
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
}
}
craco.config.js
const path = require('path')
module.exports = {
webpack: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
}
- source-map-explorer
"scripts": {
"report": "source-map-explorer 'build/static/js/*.js'"
}