tileset_server
v0.0.11
Published
tileset server
Downloads
4
Readme
import
import {TSRoute} from 'tileset_server';
use for sqlite
const tsConfig = {
database: "sqlite",
sqlite: "tfs.db",
mongod: "C:\\Program Files\\Mongo3.6\\bin\\mongod.exe",
mongo_storage_dir_path: "C:\\mongo_data"
};
const tsRoute = new TSRoute(tsConfig);
app.use(`/tfs`, tsRoute.router)
use for postgresql
const tsConfig = {
database: "pg",
sqlite: "tfs.db",
pg: {
user: "sunway",
password: "sunwaywh",
database: "tfs",
host: "127.0.0.1",
port: 5432
},
mongod: "C:\\Program Files\\Mongo3.6\\bin\\mongod.exe",
mongo_storage_dir_path: "C:\\mongo_data"
};
const tsRoute = new TSRoute(tsConfig);
app.use(`/tfs`, tsRoute.router)