TikTok Reporter Backend API
$ npm install
# development
$ npm run start
Than visit http://localhost:8080/api to access swagger
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
To test file-based GeoIP lookup, you must install the geoipupdate
package.
Details here.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Make sure to uncomment the proper lines for the migrations and entities line in the data-source.ts file
Because of the way the migrations are being used by development/deployment and e2e testing scenarios they need to be accessed from different locations. That is why some lines need to be commented for deployment/development and others for e2e testing.
# unit tests
$ npm run test:e2e
Make sure to uncomment the proper line for the migrations and entities line in the data-source.ts file.
$ npm run migration:generate -n src/database/migrations/