Rails-Angular-Devise Template App
=================================
**This is a template project using Rails back-end, Devise authentication, and Angular front-end. It also includes preconfigured testing and documentation tasks.**
**Basically all the heavy lifting of starting a new project is done and you can just start building great apps!**
The template uses rails server-side pages to authenticate the user, and then it hands control off to an angular client. I found there was a significant amount of setup required to get this setup working as I intended, so that effort spawned the idea to provide a working template for others to adapt to their own projects.
(This has been tested on Linux only. I make no claims that it works on Windows/OSX at this time)
### Gems, Frameworks, and other libraries included:
- **Rails Backend**
- [Rails 4.1.1](https://github.com/rails/rails)
- [pg](http://deveiate.org/code/pg/)
- Postgresql database
- [Devise](https://github.com/plataformatec/devise)
- Server side authentication library
- [CanCan](https://github.com/ryanb/cancan)
- Authorization
- [Rspec](https://github.com/rspec/rspec-rails)
- Behavior Driven Testing framework for our ruby code
- [yard](https://github.com/lsegal/yard)
- Ruby Documentation Tool
- **Angular Frontend**
- [angularjs-rails](https://github.com/hiravgandhi/angularjs-rails)
- [ng-rails-csrf](https://github.com/xrd/ng-rails-csrf)
- This nice little gem removes the need to configure the CSRF header on API requests.
- [angular-rails-templates](https://github.com/pitr/angular-rails-templates)
- Auto-magically inserts your angular templates into the rails asset pipeline
- [angular-ui-bootstrap-rails](https://github.com/cconstantin/angular-ui-bootstrap-rails)
- Includes bootstrap directives provided by the angular-ui team
- [teaspoon](https://github.com/modeset/teaspoon)
- Javascript test runner. It's set up to use jasmine and phantomJS, but can be configured to use many other testing solutions if you prefer.
- [jsdoc](https://github.com/jsdoc3/jsdoc)
- JavaScript Documentation Tool
- **Common Items**
- [Bootstrap-sass](https://github.com/twbs/bootstrap-sass)
- Bootstrap 3 css with SASS support
- [simplecov](https://github.com/colszowka/simplecov)
- Metrics
### What you get preconfigured:
- Ruby on Rails app and directory structure
- Angular app and directory structure
- Rails User model
- Server side Sign-in/Registration
- Rails hand off to Angular on sign-in
- Angular asset pipeline integration
- Ruby and JavaScript testing environments
- Ruby and JavaScript code coverage
- Travis CI build info
- Yard documentation for Ruby
- JSDoc documentation for JavaScript
- Rubocop and JSHint config files
### Requirements:
- Ruby 2.1 installed (Should work with ruby versions > 1.9.3, but I recommend the latest)
- Postgres database installed and configured
#### Optional other dependencies
- [Istanbul](https://github.com/gotwarlost/istanbul) for javascript code coverage report
### Initial Setup:
- Clone the repo
- In config/application.rb, change config.app_name to your project's name (This name is used on login pages and page titles)
- <code>bundle install</code> to install all the required gems
### Database Creation:
- Add your DB connection details in config/database.yml (Not provided in repo -- You should never check your database info into source control!)
- <code>bundle exec rake db:create</code>
### Database Initialization:
- <code>bundle exec rake db:migrate</code>
### Running Tests
- Ruby tests: <code>bundle exec rspec</code>
- Javascript tests: <code>bundle exec teaspoon</code>
- Code coverage reports are generated automatically with each of the above commands
- Coverage reports are located in spec/coverage
- Istanbul node package is required for JS coverage report
### Continuous Integration
- Set up your repository to be watched by [TravisCI](https://travis-ci.org/) and your build and tests will be run automatically by travis with every push. Travis config file is included and set up with the standard build info and test suite commands
### Generating Documentation
- <code>bundle exec rake mydoc</code>
### Development FAQs
- **Where is the angular code?**
- app/assets/javascripts has the scripts and folder structure for the angular app
- app/assets/templates has the HTML templates. See [angular-rails-templates](https://github.com/pitr/angular-rails-templates) for details on how to reference the templates.
- **Where is index.html for my angular app?**
- The layout template is in: app/views/layouts/angular.html.erb
- The index page is in: app/views/home/index.html.erb
没有合适的资源?快使用搜索试试~ 我知道了~
具有Devise身份验证的模板RailsAngular应用程序_JavaSc.zip
共236个文件
js:102个
rb:33个
erb:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 169 浏览量
2023-04-06
22:19:57
上传
评论
收藏 1.02MB ZIP 举报
温馨提示
具有Devise身份验证的模板RailsAngular应用程序_JavaSc
资源推荐
资源详情
资源评论
收起资源包目录
具有Devise身份验证的模板RailsAngular应用程序_JavaSc.zip (236个子文件)
bundle 129B
checksums 581B
sample.conf 868B
all.css 5KB
screen.css 4KB
handheld.css 3KB
default.css 2KB
root.dat 7KB
mplus-1m-regular-webfont.eot 19KB
mplus-1m-bold-webfont.eot 18KB
new.html.erb 3KB
new.html.erb 2KB
login.html.erb 2KB
edit.html.erb 1KB
_links.erb 1KB
application.html.erb 984B
edit.html.erb 609B
index.html.erb 510B
angular.html.erb 452B
reset_password_instructions.html.erb 393B
new.html.erb 392B
new.html.erb 380B
new.html.erb 374B
unlock_instructions.html.erb 276B
confirmation_instructions.html.erb 198B
main.html.erb 55B
error.js.erb 33B
Gemfile 1KB
.gitignore 698B
404.html 2KB
422.html 2KB
500.html 1KB
index.html 673B
about.html 56B
header.html 24B
favicon.ico 0B
js.jar 800KB
jsdebug.jar 1KB
jsrun.jar 1KB
JsDebugRun.java 753B
JsRun.java 743B
test.js 23KB
Symbol.js 18KB
Walker.js 17KB
jsdoc_test.js 10KB
DocTag.js 10KB
all.js 9KB
publish.js 9KB
TokenReader.js 9KB
XMLParse.js 8KB
run.js 8KB
SymbolSet.js 7KB
publish.js 6KB
DocComment.js 6KB
Parser.js 5KB
Link.js 5KB
DomReader.js 4KB
JsDoc.js 4KB
TestDoc.js 4KB
Dumper.js 4KB
Testrun.js 4KB
JsPlate.js 4KB
JSDOC.js 3KB
main.js 3KB
Lang.js 3KB
Opt.js 3KB
TokenStream.js 3KB
String.js 2KB
Chain.js 2KB
Hash.js 2KB
publishSrcHilite.js 2KB
spec_helper.js 2KB
html5.js 1KB
tagSynonyms.js 1KB
PluginManager.js 1KB
Util.js 935B
event.js 893B
tagParamConfig.js 886B
TextStream.js 845B
frame.js 845B
borrows.js 737B
functions_nested.js 714B
Reflection.js 706B
app.js 706B
param_inline.js 668B
functions_anon.js 619B
ng-application.js 617B
multi_methods.js 597B
shared.js 547B
about_ctrl_spec.js 533B
main_ctrl_spec.js 521B
commentSrcJson.js 509B
frameworkPrototype.js 494B
globals.js 493B
lend.js 487B
FOODOC.js 486B
config.js 479B
XMLDoc.js 465B
memberof2.js 464B
XMLDOC.js 453B
共 236 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- threadmanager.cpp
- 腾讯云小程序 - 一站式开发与部署平台
- 基于JSP+Java+Servlet采用MVC模式开发的购物网站+源码(毕业设计&课程设计&项目开发)
- fastgestures安装包,模拟mac的触控板收拾,两指代表右击, 三指拖拽
- 基于组态王的升降式横移立体车库控制系统+源码(毕业设计&课程设计&项目开发)
- 基于python+Django和协同过滤算法的电影推荐系统+源码(毕业设计&课程设计&项目开发)
- 环境配置 vscode+jupyter
- 项目全部代码,还包含使用到的图片
- 项目全部代码,还包含使用到的图片
- 基于java+MapReduce实现基于物品协同过滤算法,即电影推荐系统+源码+开发文档+算法解析(毕业设计&课程设计&项目开发
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功