Files
nest/sample/05-sql-typeorm
dependabot[bot] 8da1beb000 chore(deps): bump mysql2 from 3.9.7 to 3.9.8 in /sample/05-sql-typeorm
Bumps [mysql2](https://github.com/sidorares/node-mysql2) from 3.9.7 to 3.9.8.
- [Release notes](https://github.com/sidorares/node-mysql2/releases)
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md)
- [Commits](https://github.com/sidorares/node-mysql2/compare/v3.9.7...v3.9.8)

---
updated-dependencies:
- dependency-name: mysql2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 10:32:42 +00:00
..
2021-09-04 21:28:22 +02:00
2019-09-16 14:26:41 -07:00

SQL TypeORM sample

Installation

npm install

Running

This example requires docker or a local MySQL installation. If using a local MySQL database, see app.module.ts for credentials, and make sure there are matching credentials in the database and the source code.

Docker

There is a docker-compose.yml file for starting Docker.

docker-compose up

After running the sample, you can stop the Docker container with

docker-compose down

Run the sample

Then, run Nest as usual:

npm run start