Skip to content

Repository files navigation

Bitrend Server

Express 기반 백엔드 서버

시작하기

설치

npm install

환경 설정

.env 파일 생성:

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/bitrend
PORT=3000
NODE_ENV=development

데이터베이스 설정

Docker Compose 사용:

docker-compose up -d

자세한 내용은 LOCAL_DEVELOPMENT.md 참고

개발 서버 실행

npm run dev

프로덕션 실행

npm start

문서

프로젝트 구조

src/
├── index.js              # 서버 진입점
├── app.js                # Express 앱 설정
├── config/               # 설정 파일
├── controllers/          # HTTP 요청/응답 처리
├── services/             # 비즈니스 로직
├── repositories/         # 데이터베이스 쿼리
├── routes/               # 라우트 정의
└── middlewares/          # 커스텀 미들웨어

API 엔드포인트

Health Check

GET /health

Users (예시)

GET    /api/users
GET    /api/users/:id
POST   /api/users

기술 스택

  • Node.js
  • Express 5
  • PostgreSQL
  • Prisma ORM
  • JWT Authentication
  • Docker

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages