Board REST API Server (Express, TypeScript)
Using TypeScript and Express.
Frontend : JaeBook Client
Test using In-memory Database.
By setting options for your team, you can keep your team's coding style consistent.
Edit from .env.{NODE_ENV}.sample
in jaebook-server/config
to .env.{NODE_ENV}
and replace the content.
# APPLICATION
PORT=3000
API_PREFIX=/api
# MySQL DATABASE
DATABASE_HOST=127.0.0.1
DATABASE_PORT=3306
DATABASE_USERNAME=development
DATABASE_PASSWORD=development
DATABASE_NAME=development
# TypeORM
TYPEORM_SYNCHRONIZE=true
TYPEORM_LOGGING=true
# JWT
JWT_SECRET_ACCESS_KEY=test!@#$
JWT_SECRET_REFRESH_KEY=retest!@#$
# Swagger
SWAGGER_ROUTE=/api-docs
# Sentry
SENTRY_DSN=
Edit from .env.sample
in the root to .env
and replace the content.
This is the environment variable setting to be used for Docker.
# Set docker-compose environment
DB_ROOT_PASSWORD=testpass
DB_USER=test
DB_PASSWORD=test
DB_NAME=jaebook
Steps to run this project:
yarn install
commanddocker-compose up
commandyarn install
commandyarn dev
command# e2e, unit tests
$ yarn test