Rails 6.1+PostgreSQL+TDD票务系统构建实战

票务系统的票证生成器和追踪功能,挺适合用来练习 Rails 项目结构的。基于Rails 6.1 + PostgreSQL,加上TDD思路,逻辑清晰,结构也挺规整。适合平时拿来练手,或者当作自己写系统时的参考模版。

Rails 的Webpacker前端集成也用上了,前后端打通比较顺手。如果你熟 Ruby,那这套环境应该不难上手。先git clone或者下 zip 都行,跑下bundle installrails db:create就能跑起来了。

哦对了,Ruby 版本是2.7.2,别忘了对上环境。不然容易出一些 Gem 依赖的小问题,尤其是像webpacker这种带 JS 依赖的包。

推荐顺手看看这几个资料:Webpacker 前端集成写得还不错,rubyOneRails有多 Rails 技巧总结。如果你对 Rails 加 React 也感兴趣,可以看下Rails React Auth,JWT 登录搞得蛮清楚的。

,这是一个比较实用的项目,既能了解 Rails 的 CRUD 流程,又能试试 TDD 的写法。如果你想做个小工具或是新手项目,挺适合从它入手的。

folder
票务系统:使用Rails和TDD构建票务系统 预估大小:193个文件
file
bundle 3KB
file
credentials.yml.enc 464B
file
_user_form.html.erb 727B
file
show.html.erb 669B
file
application.html.erb 3KB
file
_links.html.erb 1KB
file
_error_messages.html.erb 398B
file
new.html.erb 548B
file
new.html.erb 675B
file
reset_password_instructions.html.erb 393B
file
edit.html.erb 1KB
file
new.html.erb 833B
file
new.html.erb 677B
file
edit.html.erb 935B
file
new.html.erb 518B
file
show.html.erb 1KB
file
index.html.erb 472B
file
show.html.erb 1KB
file
.browserslistrc 9B
file
_form.html.erb 497B
zip 文件大小:256.14KB