Code Monkey home page Code Monkey logo

compass's Introduction

compass

Requirements

  • Nodejs >= 14 (Recommend: 16.x)
  • Mysql >= 8.0
    • Recommend collation: utf8mb4_general_ci

環境変数

環境変数 設定例 説明
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 管理ページへのアクセスパスワード

Setup Dev Backend

cd .dev/compass-dev-backends
docker-compose up -d

Install

npm install
vi .env
npx prisma db push

Dev

npm run dev

Build

npm run build

Start

npm run start

compass's People

Contributors

fujita-h avatar

Watchers

 avatar

compass's Issues

Need to change database table names to lowercase

mysql の lower_case_table_names システム変数の設定によって、テーブル名が全て小文字に変換されることがある。
この際、Prisma がそれに追従できない可能性があるため。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.