Coder Social home page Coder Social logo

angular-music's Introduction

Angular音乐盒

一个基于AngularJS的移动WebAPP项目


客户端

客户端的目录结构使用Yeoman生成,位于client文件夹内部。

为了使得调试/开发环境可用,请按照如下步骤确保开发环境完备正常:

  • 安装Node.js、bower、Compass

  • 进入client目录执行如下命令,通过NPM安装依赖模块(主要是Grunt及其插件):

      $ npm install
    
  • 进入client目录执行如下命令安装依赖的JavaScript库:

      $ bower install
    
  • 执行$ grunt server开启浏览器,启动调试(请阅读FAQ来确保调试正常)。

服务端

本项目服务端代码放置于server文件夹内,为发布后的客户端提供RESTFUL风格的API接口。本应用使用NodeJS + MongoDB来实现请求处理和数据存储。请按照如下步骤确保服务运行:

  • 安装Node.js和MongoDB

  • 进入server文件夹执行如下命令,通过NPM安装依赖模块:

    $ npm install

  • 执行如下命令开启服务:

    $ node server

  • 访问http://localhost:1987来访问发布后的应用,如果需要改变端口号,请修改server/server.js文件。

FAQ

如何在Chrome中调试本项目

本项目调试使用的是grunt-contrib-connect插件来提供静态服务器,为了能够访问服务端资源,请通过如下命令关闭Chrome的跨域安全限制:

针对Mac:

$ open -a Google\ Chrome --args --disable-web-security

针对Linux:

$ google-chrome --disable-web-security

针对Windows:

chrome.exe --disable-web-security

如果希望开启本地文件访问,可以使用--allow-file-access-from-files参数。

angular-music's People

Contributors

zhongkai avatar

Watchers

 avatar

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.