UNPKG

spaz-web

Version:

(Deprecated) Web App Microframework for building React SPA's with Express API backends

20 lines (16 loc) 363 B
import { SpazServer } from 'spaz-web' let spaz = new SpazServer({ name: 'Spaz Test', port: process.env.PORT, staticDir: process.env.NODE_ENV !== 'production' ? 'assets' : null }) /* * Add routes to the SPAZ Router */ // let routes = spaz.newRouter() // spaz.router.use(routes) spaz .start() .then(() => { spaz.logger.info('Spaz running!') })