agentstack-grpc
v0.4.2
Published
Agent-Oriented Programming Stack for TypeScript
Downloads
2
Readme
OneStack 3
Example
- Create new project using
npm init
- Install onestack as a dependance
npm install onestack --save
- Create
config.ts
file
import { Kernel, IKernelSettings } from 'onestack';
interface IOAuthSettings extends IKernelSettings {
GOOGLE_OAUTH_KEY: string
GOOGLE_OAUTH_PASSWORD: string
}
export default new Kernel<IOAuthSettings>();
- in your typescript file
import app from './config'
app.init();
console.log(app.settings.GOOGLE_OAUTH_KEY)