onestack
v3.4.0
Published
OneStack Enterprise Server Platform
Downloads
22
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)