현재 이곳에서 TILog-v2 마이그레이션이 진행중입니다.
blog platform for developers, TILog.
Frontend project is at another Repo
개발자를 위한 블로그 플랫폼 TILog 입니다.
View Service
·
Report Bug
·
Request Feature
- 게시글 태그
- 태그 검색
- NestJS
- TypeScript
- MySQL
- typeORM
- Redis
git clone https://github.com/argon1025/TILog-server.git
cd TILog-server
npm install
// vi .env
// vi .end.dev
# Server Settings
SERVER_PORT=3000
SERVER_HOST=localhost
# CORS Settings
CORS_METHOD=GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS
CORS_ORIGIN=true
CORS_CREDENTIALS=true
# Database Settings
DB_PASSWORD=
DB_DATABASE=TILog
DB_USERNAME=TILog
DB_HOST=
DB_PORT=3306
# Redis storage Settings
REDIS_HOST=redis://localhost
REDIS_PORT=6379
# Passport Settings
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URL=
# Session Settings
SESSION_SECRET=
SESSION_RESAVE=
SESSION_SAVEUNINITIALIZED=
## 24H
SESSION_COOKIE_MAXAGE=86400000
# Front Server Setting
REDIRECT_FRONT=http://localhost:8080/login
# S3 fileUpload settings
AWS_S3_BUCKET=
AWS_S3_ACCESS_KEY=
AWS_S3_KEY_SECRET=
MAXIMUM_IMAGE_FILE_SIZE_BYTES=10000000
# Post cursor Settings
POSTS_GET_CONTENT_LIMIT=30
# Throttle Settings
THROTTLE_TTL=60
THROTTLE_LIMIT=10
# Alert WebHook
ERROR_SLACK_WEBHOOK_URL=https://hooks.slack.com/
# Sentry
SENTRY_DNS=https://uhvb123312398798asd89y8yh@o1171978.ingest.sentry.io
docker-compose up --build
Please Change the environment variable(Database password) in docker-compose.yml
cd src
npm run start:dev
Please Change the environment variable(.env.dev)