closes https://github.com/cnpm/cnpmcore/issues/731 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Added support for PostgreSQL alongside MySQL, including a new database setup script and comprehensive documentation for local development. - Introduced a new CI job for PostgreSQL testing in the GitHub Actions workflow. - Enhanced the `README.md` and `DEVELOPER.md` files to provide clearer instructions for using both database systems. - Added new environment variable configurations for PostgreSQL in the Docker deployment documentation. - **Bug Fixes** - Improved error handling in tests for duplicate entries to accommodate both MySQL and PostgreSQL error messages. - **Documentation** - Updated setup instructions for PostgreSQL and clarified MySQL setup in the documentation. - Enhanced contributor information in the README. - Expanded instructions for setting up Elasticsearch and Kibana, including environment variable configurations. - **Chores** - Updated package dependencies to include PostgreSQL client libraries and modified scripts to support both databases. - Changed the base image in the Dockerfile to a newer Node.js version. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
462 B
462 B
本地开发环境 - MySQL
依赖列表
本项目的外部服务依赖有:
- 数据库:MySQL
- 缓存:Redis
通过 Docker 初始化
# 启动
$ docker-compose up -d
# 关闭
$ docker-compose down
手动初始化
假设大家使用 macOS 开发,Linux 和 Windows 环境自行参考。
MySQL 9
brew install mysql
brew services start mysql
Redis
brew install redis
brew services start redis