Skip to content

설정 및 실행

JaeHyeonKim edited this page Dec 23, 2019 · 2 revisions

설정

Database

cd api-server
npx sequelize-cli db:migrate
npx sequelize-cli db:sedd:all
cd ..

환경 변수

# web/.env
REACT_APP_API_URL=http://127.0.0.1:4000
REACT_APP_WEB_URL=http://127.0.0.1:3000
REACT_APP_OAUTH_SERVER_URL=http://127.0.0.1:5000

# if you're using mac...
SKIP_PREFLIGHT_CHECK=true
# api-server/.env
SESSION_KEY=
SALT_ROUNDS=

REDIS_PORT=
REDIS_HOST=
REDIS_PASSWORD=

DB_USER_DEV=
DB_PASSWORD_DEV=
DB_NAME_DEV=
DB_HOST_DEV=127.0.0.1
DB_DIALECT_DEV=mysql
ACCESS_KEY=
SECRET_KEY=
BUCKET=
WEB_URL=http://127.0.0.1:3000

Client

cd web
npm install
npm start
cd ..

API Server

cd api-server
npm install
npm start
cd ..
Clone this wiki locally