- Nodejs >= 14 (Recommend: 16.x)
- Mysql >= 8.0
- Recommend collation:
utf8mb4_general_ci
- Recommend collation:
環境変数 | 設定例 | 説明 |
---|---|---|
DATABASE_URL | mysql://username :password @hostname :port /database |
DB 接続文字列 |
ELASTICSEARCH_URL | http://username :password @hostname :port |
Elasticsearch の URL |
TOKEN_SECRET | this-is-a-secret-value-with-at-least-32-characters | セッショントークンのシークレットキー (32 文字以上) |
ADMIN_SECRET | secret | 管理ページへのアクセスパスワード |
cd .dev/compass-dev-backends
docker-compose up -d
npm install
vi .env
npx prisma db push
npm run dev
npm run build
npm run start