🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

spa-seed

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spa-seed

Simple page application seed for teambition.

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
17
325%
Maintainers
1
Weekly downloads
 
Created
Source

SPA Seed

Simple page application seed for teambition.

NPM version Build Status

本项目主要作为 Simple page application 项目模板,也是 Toa 示例项目,主要提供如下功能:

  • 作为开发环境,提供 view 和静态资源驱动服务;
  • 为前端内容提供打包服务;
  • 提供了简单的 API 接口,可以很方便的改成 mock API;

本项目只是一个模板项目,你只需要复制本项目,然后根据需求修改成自己的项目即可。

本项目基于 Toathunks。前者类似 koa,是一个先进的 node.js server 框架。后者是一个小巧强大的异步流程控制工具,支持 promise、thunk 和 generator,并且对浏览器端全兼容。

实际上,如果你熟悉了 Toa,那么可以基于本项目开发完整的 web 服务,如博客、API server 等。

usage

development:

npm install
bower install
gulp
npm start

访问:http://localhost:3000

production:

npm install
bower install
gulp build
pm2 start pm2/release.json

Keywords

toa

FAQs

Package last updated on 17 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts