forked from typijs/typijs
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathserver.ts
More file actions
14 lines (12 loc) · 548 Bytes
/
server.ts
File metadata and controls
14 lines (12 loc) · 548 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { CmsApp, config, CmsStorageEngine, ImgurStorageEngine } from '@typijs/api';
const cmsApp = new CmsApp({
provides: [
//Default Angular Cms using disk storage to store the uploaded images.
//It also support cloud storage such as Imgur
//If you want to use Imgur as image storage, using this config as below
//{ provide: CmsStorageEngine, useClass: ImgurStorageEngine }
]
});
cmsApp.start()
.then(() => { console.log('Server started successfully!'); })
.catch((err) => { console.error(err); })