GithubHelp home page GithubHelp logo

fesource / fd-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaojue/fd-server

0.0 2.0 0.0 10.72 MB

Front-end development server

Home Page: fd-server.org

License: MIT License

JavaScript 85.75% CSS 14.25%

fd-server's Introduction

fd-server

Build Status 依赖模块状态 浏览数

Fds 是一套统一的本地开发环境,面向工程化的前端开发项目。简化开发人员生产时对服务配置的依赖,提高前端开发人员的开发效率。面向自动化的项目流程管理,交付,测试。减少复杂的人工操作。自身包含的扩展机制,也能够提供给开发者灵活多变的个性化服务定制方案, 同时Fds也是一套跨平台的本地开发环境,完美支持win,linux,mac os。


下载安装

安装wiki


命令行工具

$ fd-server -h

  Usage: fd-server [command]

  Commands:

    start                  start the fd-server server
    startDaemon            start with daemon
    stop                   stop the fd-server server
    restart                restart the fd-server server

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    

快速上手

安装成功后,使用start命令开启服务。

$ sudo fd-server start

启动完成之后可访问 http://fd.server 访问服务配置页面。

浏览器代理配置帮助

扩展接口

有的时候我们往往需要模拟一些后端接口,或者做一些动态解析的功能,或者扩展动态路由。fd-server支持给vhost的静态服务扩展路由。 只需要在静态目录下放置 .node 的扩展名文件,代码书写如下:

//someroute.node
route(function(req,res){
   res.writeHead(200,{'Content-Type':'text/plain'});
   res.end('someroute');
});

那么当你访问对应host域名下得/someroute.node地址则会自动转入当前文件的route函数路由中,可随意扩展。


注意事项

startDaemon stop start restart 命令都需要管理员权限,linux or mac下使用 sudo fd-server start win下会有权限的窗口提醒,需要确认。


贡献

 project  : fd-server
 repo age : 10 months
 active   : 65 days
 commits  : 404
 files    : 158
 authors  : 
   127  fu                      31.4%
    79  RK-WJW                  19.6%
    70  liuxiaoyue              17.3%
    59  xiaojue                 14.6%
    46  Your Name               11.4%
    19  Xiaojue                 4.7%
     2  RK_CODER                0.5%
     1  myluluy                 0.2%
     1  root                    0.2%

License

MIT license

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.