0.1.4 • Published 12 months ago
@liquiditeam/app-sdk v0.1.4
Liquiditeam app-sdk
import initAppSDK from '@liquiditeam/app-sdk';
import cookieParser from 'cookie-parser';
import express, { Router } from 'express';
const config = {
appBaseUrl: 'http://example.com', // the base url of the app
appStoreAppName: 'example-app', // the name of the app in the app store
appStoreGraphqlUrl: 'https://appstore.fan-platform.com',
appStoreGraphqlWsUrl: 'wss://appstore.fan-platform.com',
fanIdBaseUrl: 'https://me.fan',
clientId: '123456', // of the fan id oauth app
clientSecret: '987654', // of the fan id oauth app
};
const app = express();
const router = Router();
const sdk = initAppSDK(config);
// add routes to router
app.use(cookieParser());
app.use(sdk.middleware(router));
const main = async () => {
await sdk.fetchInstallations(app.locals);
sdk.subscribeToInstallationChanges(app.locals);
app.listen(PORT, () => {
console.log(`Listening on port ${PORT}`);
});
};
main();
0.1.4-dev.0
12 months ago
0.1.4
12 months ago
0.1.1-dev.0
2 years ago
0.1.1-dev.1
2 years ago
0.1.2-dev.1
2 years ago
0.1.2-dev.0
2 years ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
3 years ago
0.0.11-alpha.0
3 years ago
0.0.10-alpha.0
3 years ago
0.0.9
3 years ago
0.0.8-development.0
3 years ago
0.0.8-development.1
3 years ago
0.0.8-development.2
3 years ago
0.0.7-development.0
3 years ago
0.0.7-development.1
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5-development.1
4 years ago
0.0.5
4 years ago
0.0.5-development.0
4 years ago
0.0.3
4 years ago
0.0.4
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago