x-nestjs-typeorm
Setup
$ yarn install
MySQL
Run
$ docker container run --name x-nestjs-typeorm --rm -d -p 3306:3306 -e "MYSQL_ROOT_PASSWORD=root" -e "MYSQL_DATABASE=x_nestjs_typeorm" mysql:5.7
Client
$ mysql -h 127.0.0.1 -D x_nestjs_typeorm -u root -p
Stop
$ docker container stop x-nestjs-typeorm
Run app
$ yarn db:sync
$ yarn start
$ open http://localhost:3000/photo
Test
$ yarn test