React.js 와 Node.js 로 구현한 간단한 블로그 웹 애플리케이션 입니다.
-
진행 방식은 issue 를 등록하고 issue 를 해결하는 방식입니다.
-
브랜치 명은 다음과 같은 방식입니다.
- (front or back) / 내용
-
커밋 메세지는 다음과 같은 방식입니다.
- [(브랜치명) / (feature,fix...)] 커밋 메세지 (# no.issue)
-
필수 조건(require)
- node.js (10.15.3)
- postgresql
-
데이터베이스 세팅 (database setting with ubuntu 18.04)
$> sudo su postgres
postgres@~$ psql
postgres=# create user test password 'test'; // 데이터 베이스 유저 생성
postgres=# create database simple_blog owner test; // 데이터 베이스 생성
postgres=# \c simple_blog // 데이터 베이스 접근
simple_blog=# CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; // UUID auto generate 위한 세팅
- .env 추가(backend)
$> cd backend // root path 기준
$> touch .env
# server port
PORT=8080
# postgresql settings
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=test
DATABASE_PASSWORD=test
DATABASE_NAME=simple_blog
DATABASE_MAX_TRY_RECONNECT=5
DATABASE_RECONNECT_SECONDS=10
# jwt secret
JWT_SECRET=test123
- backend dev 서버 구동(backend dev server start)
$> cd backend // root path 기준
$> yarn && yarn dev // npm install && npm run dev
- frontend dev 서버 구동(frontend dev server start)
$> cd frontend // root path 기준
$> yarn && yarn dev // npm install && npm run dev