@searchkings/typeorm-entities

TypeORM entities imported by various projects.

Usage no npm install needed!

<script type="module">
  import searchkingsTypeormEntities from 'https://cdn.skypack.dev/@searchkings/typeorm-entities';
</script>

README

TypeORM-Entities

TypeORM Entity npm library for SearchKings

Development Environment

Ensure Docker is installed on your system. Clone the repository and run the following command:

npm install
docker-compose up

SQL DB will be available at: Host: 127.0.0.1 Username: typeorm-lib Password: typeorm-lib Port: 6033

Seeding Data

If you wish to pre-populate your development database with seed data to query, run the following command:

npm run seed

Optional arguments:

Seed only specific table

npm run seed -- --run <INSERT TABLENAME>

Seed with custom userId which will be replace one of the generated userIds

npm run seed -- --userId <INSERT USER ID>