Home
/
browser-rts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5583b86745e74417f6eaa35db7b44602e2e8c377
[browser-rts.git]
/
scripts
/
generate-cities.ts
1
import { CityRepository } from "../src/repository/city";
2
import { v4 as uuid } from 'uuid';
3
4
const cityRepo = new CityRepository();
5
6
(async () => {
7
for(let i = 0; i < 100; ++i) {
8
await cityRepo.create(uuid());
9
}
10
11
console.log('Created 100 cities');
12
13
process.exit(0);
14
})();