Back end web application for collecting data.
- Watches your friends online activity
- Creates sessions and saves them to the database
- Serves your static frontend at ./public/
- The data can be further analyzed in VKWatcher-Frontend
-
Put your VK API Token into .env file. You may use example.env as a reference. You need "friends" and "offline" permissions for your application.
-
Run the application:
Option 1: Using ts-node
- Start ts-node with ./src/index.ts file as entry point:
ts-node ./src/index.ts
Or run vscode's "Launch Program" configuration.
Option 2: Using node
- Make sure that all sources was compiled using webpack into ./dist/bundle.js (look release npm script).
- Start the script using regular node:
node ./dist/bundle.js
-
Additionaly, you can create ./public folder and put there your fontend part to be served.
Install all dependencies:
npm install
Script | Description |
---|---|
release | Creates a production build of the project |
build | Creates a development build of the project |
-
Converter: converts old JSON session format to a new database
Run:
ts-node ./src/utils/converter.ts <path_to_sessions.json_file>