0.4.2 • Published 9 years ago
agentstack-grpc v0.4.2
OneStack 3
Example
- Create new project using
npm init- Install onestack as a dependance
npm install onestack --save- Create
config.tsfile
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)