Project usememos/memos backend nestjs version, support more database type.
Thanks to everyone who contributed to the origin project.
$ npm install
# host name
MEMOS_NAME=dingjunjie12138
# host email
MEMOS_EMAIL=dingjunjie12138@qq.com
# host password
MEMOS_PASSWD=password
# sqlite config
MEMOS_DB_TYPE=sqlite
MEMOS_DB_PATH="./data/database/memos.db"
# mysql or postgres config
MEMOS_DB_TYPE=postgres
MEMOS_DB_HOST=localhost
MEMOS_DB_PROT=5432
MEMOS_BD_USERNAME=postgres
MEMOS_BD_PASSWORD=postgres
MEMOS_BD_DATABASE=postgres
# file upload path
MEMOS_UPLOAD_PATH="./data/resource/"
You need configure the ssl setting:
-
ssl/file.crt
-
ssl/key.pem
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod