https://github.com/wingify/vwo-node-sdk-typescript-demo
Provides a basic demo of how server-side works with VWO NodeJs SDK
https://github.com/wingify/vwo-node-sdk-typescript-demo
example-app nodejs server-side typescript vwo
Last synced: 10 months ago
JSON representation
Provides a basic demo of how server-side works with VWO NodeJs SDK
- Host: GitHub
- URL: https://github.com/wingify/vwo-node-sdk-typescript-demo
- Owner: wingify
- License: apache-2.0
- Created: 2021-04-05T13:15:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T13:46:44.000Z (over 4 years ago)
- Last Synced: 2025-01-08T18:44:42.317Z (12 months ago)
- Topics: example-app, nodejs, server-side, typescript, vwo
- Language: TypeScript
- Homepage: https://developers.vwo.com/reference#fullstack-introduction
- Size: 70.3 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## VWO Typescript Example
[vwo-node-sdk](https://github.com/wingify/vwo-node-sdk) allows you to A/B Test your application at server-side and other capabilities like feature rollout, feature testing, etc.
This repository provides a basic demo of how server-side works with VWO NodeJs SDK.
### Requirements
- Node 6.10.0 onwards
### Documentation
Refer [VWO Official Server-side Documentation](https://developers.vwo.com/reference#fullstack-introduction)
### Scripts
1. Install dependencies
```bash
yarn install
```
2. For NodeJs, update your app configuration inside `config.ts`
```js
// Only if settings-file is fetched from browser, otherwise pass settings-file from server to client
static const accountId = '';
static const sdkKey = '';
// AB Test
static const abCampaignKey = '';
static const abCampaigngoalIdentifier = '';
// Feature Rollout
static const featureRolloutCampaignKey = '';
static const featureTestCampaignKey = '';
static const featureTestCampaigngoalIdentifier = '';
static const featureVariable = '';
// Push API i.e. Custom Dimension for post-segmentation
static const tagKey = '';
static const tagValue = '';
// Pre-segmentation variables
static const customVariables = {};
```
3. Run application
```bash
yarn start
```
## License
[Apache License, Version 2.0](https://github.com/wingify/vwo-node-sdk-example/blob/master/LICENSE)
Copyright 2019-2021 Wingify Software Pvt. Ltd.